Skip to content

Commit 6f1e0df

Browse files
authored
Create dockerfile
1 parent 05da9cb commit 6f1e0df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)