forked from joyn-gg/_archived_elo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.pub
More file actions
24 lines (18 loc) · 905 Bytes
/
Dockerfile.pub
File metadata and controls
24 lines (18 loc) · 905 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
#--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.
COPY ["src/", "ELO/"]
# 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"]