Skip to content

Commit 1917d10

Browse files
committed
Docker file added
1 parent 5ff2146 commit 1917d10

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# build
2+
3+
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as build
4+
WORKDIR /src
5+
6+
COPY . .
7+
RUN dotnet publish -f netcoreapp3.1 -c release -o out
8+
9+
# launch
10+
11+
FROM mcr.microsoft.com/dotnet/core/runtime:3.1
12+
WORKDIR /app
13+
14+
COPY --from=build /src/out /app
15+
CMD dotnet MyProject.Scheduler.dll

0 commit comments

Comments
 (0)