Required push
This commit is contained in:
parent
5e0939db3d
commit
a3c9481f3f
74 changed files with 2388 additions and 9 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue