Required push

This commit is contained in:
Álvaro Gómez Cuenca 2020-12-28 21:25:12 +01:00
commit a3c9481f3f
74 changed files with 2388 additions and 9 deletions

26
Dockerfile Normal file
View file

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