Skip to content

Commit

Permalink
Add timezone awareness to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ondryaso committed Feb 15, 2024
1 parent 72be233 commit 0f72397
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion KachnaOnline.App/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ WORKDIR /src/KachnaOnline.App
RUN dotnet publish --no-restore -o /publish

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite as runtime
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-extra as runtime
EXPOSE 8080
WORKDIR /app
COPY --from=build /publish .

ARG TZ=Europe/Prague
ENV TZ=${TZ}

ENTRYPOINT ["./KachnaOnline.App"]

0 comments on commit 0f72397

Please sign in to comment.