Skip to content

Commit

Permalink
Docker file added
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed Jun 29, 2020
1 parent 5ff2146 commit 1917d10
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions templates/MyProject.Scheduler/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# build

FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as build
WORKDIR /src

COPY . .
RUN dotnet publish -f netcoreapp3.1 -c release -o out

# launch

FROM mcr.microsoft.com/dotnet/core/runtime:3.1
WORKDIR /app

COPY --from=build /src/out /app
CMD dotnet MyProject.Scheduler.dll

0 comments on commit 1917d10

Please sign in to comment.