dsharp-bot/Bot_Discord_CSharp/Dockerfile
Álvaro Gómez Cuenca 5e0939db3d Docker sync finished
2020-12-09 20:34:49 +01:00

20 lines
No EOL
459 B
Docker

FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
WORKDIR /app
COPY --from=build-env /app/out .
#COPY config.json ./
COPY Properties/launchSettings.json ./
ENTRYPOINT ["dotnet", "Bot_Discord_CSharp.dll"]