We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32a6bb3 commit 3cf8c67Copy full SHA for 3cf8c67
src/Dockerfile
@@ -1,8 +1,5 @@
1
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
2
WORKDIR /app
3
-EXPOSE 3500
4
-
5
-ENV ASPNETCORE_URLS=http://+:3500
6
7
# Copy csproj and restore as distinct layers
8
COPY *.csproj ./
@@ -16,4 +13,6 @@ RUN dotnet publish -c Release -o out
16
13
FROM mcr.microsoft.com/dotnet/aspnet:6.0
17
14
18
15
COPY --from=build-env /app/out .
+EXPOSE 3500
+ENV ASPNETCORE_URLS=http://+:3500
19
ENTRYPOINT ["dotnet", "albumapi_csharp.dll"]
0 commit comments