Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 6945797

Browse files
committed
Updated docker file.
1 parent 802c96f commit 6945797

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

KubernetesSample/src/StockData/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build
22

3-
WORKDIR /build
3+
WORKDIR /src
44

55
COPY ./StockKube.sln .
66
COPY ./src/StockData/StockData.csproj ./src/StockData/
@@ -14,6 +14,9 @@ RUN dotnet publish --no-restore -c Release -o /published src/StockData/StockData
1414

1515
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as runtime
1616

17+
# Uncomment the line below if running with HTTPS
18+
# ENV ASPNETCORE_URLS=https://+:443
19+
1720
WORKDIR /app
1821

1922
COPY --from=build /published .

0 commit comments

Comments
 (0)