Skip to content

Commit 68768e4

Browse files
2 parents 9901c7a + 48b6e4f commit 68768e4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docker_compse.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
docker composefile
2+
3+
version: '3.8'
4+
services:
5+
webapi:
6+
build: .
7+
ports:
8+
- "5000:5000"

dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
FROM mcr.microsoft.com/dotnet/sdk:6.0
3+
WORKDIR /app
4+
COPY . .
5+
RUN dotnet restore && dotnet publish -c Release -o out
6+
WORKDIR /app/out
7+
EXPOSE 5000
8+
ENTRYPOINT ["dotnet", "ASPNETCore-WebAPI-Sample.dll"]

0 commit comments

Comments
 (0)