Skip to content

Commit 3cf8c67

Browse files
author
Kendall Roden
committed
fix csharp
1 parent 32a6bb3 commit 3cf8c67

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
22
WORKDIR /app
3-
EXPOSE 3500
4-
5-
ENV ASPNETCORE_URLS=http://+:3500
63

74
# Copy csproj and restore as distinct layers
85
COPY *.csproj ./
@@ -16,4 +13,6 @@ RUN dotnet publish -c Release -o out
1613
FROM mcr.microsoft.com/dotnet/aspnet:6.0
1714
WORKDIR /app
1815
COPY --from=build-env /app/out .
16+
EXPOSE 3500
17+
ENV ASPNETCORE_URLS=http://+:3500
1918
ENTRYPOINT ["dotnet", "albumapi_csharp.dll"]

0 commit comments

Comments
 (0)