Skip to content

Commit 961f60b

Browse files
committed
Dockerfile sample
1 parent 1083594 commit 961f60b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.dockerignore
2+
.env
3+
.git
4+
.gitignore
5+
.vs
6+
.vscode
7+
docker-compose.yml
8+
docker-compose.*.yml
9+
*/bin
10+
*/obj
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 AS sdk
2+
COPY . .
3+
RUN dotnet publish /sandbox/MultiContainedApp/MultiContainedApp.csproj -c Release -o /app
4+
5+
FROM mcr.microsoft.com/dotnet/core/runtime:2.1
6+
COPY --from=sdk /app .
7+
ENTRYPOINT ["dotnet", "MultiContainedApp.dll"]

0 commit comments

Comments
 (0)