We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9901c7a + 48b6e4f commit 68768e4Copy full SHA for 68768e4
docker_compse.yml
@@ -0,0 +1,8 @@
1
+docker composefile
2
+
3
+version: '3.8'
4
+services:
5
+ webapi:
6
+ build: .
7
+ ports:
8
+ - "5000:5000"
dockerfile
+FROM mcr.microsoft.com/dotnet/sdk:6.0
+WORKDIR /app
+COPY . .
+RUN dotnet restore && dotnet publish -c Release -o out
+WORKDIR /app/out
+EXPOSE 5000
+ENTRYPOINT ["dotnet", "ASPNETCore-WebAPI-Sample.dll"]
0 commit comments