Docker sync finished
This commit is contained in:
parent
70235f361a
commit
5e0939db3d
7 changed files with 50 additions and 32 deletions
20
Bot_Discord_CSharp/Dockerfile
Normal file
20
Bot_Discord_CSharp/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue