forked from joyn-gg/_archived_elo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.github
More file actions
25 lines (19 loc) · 972 Bytes
/
Dockerfile.github
File metadata and controls
25 lines (19 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#--Resolve Runtime Dependency--------------------------------------------------------------------------------------
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim AS base
WORKDIR /app
#--Resolve SDK/Compilation Dependency--
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
# Copy source directory into ELO folder.
RUN git clone https://github.com/tournament-kings/legacy_elo SRC/
RUN cp SRC/src ELO/ -r
# Restore csproj dependencies
RUN dotnet restore "ELO/ELO.csproj"
RUN dotnet build "ELO/ELO.csproj" -c Release -o /app/build
#--Publish App-----------------------------------------------------------------------------------------------------
FROM build AS publish
RUN dotnet publish "ELO/ELO.csproj" -c Release -o /app/publish
#--Run Compiled App on Runtime-------------------------------------------------------------------------------------
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "ELO.dll"]