Update Dockerfile to Respect Timezones again (#3926)

This commit is contained in:
DieselTech 2025-07-15 15:29:32 -04:00 committed by GitHub
parent f76ae79a55
commit 6f278ebcdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,8 +23,10 @@ COPY --from=copytask /files/wwwroot /kavita/wwwroot
COPY API/config/appsettings.json /tmp/config/appsettings.json COPY API/config/appsettings.json /tmp/config/appsettings.json
#Installs program dependencies #Installs program dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y libicu-dev libgdiplus curl \ && apt-get install -y libicu-dev libgdiplus curl tzdata \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
@ -38,6 +40,8 @@ HEALTHCHECK --interval=30s --timeout=15s --start-period=30s --retries=3 CMD curl
# Enable detection of running in a container # Enable detection of running in a container
ENV DOTNET_RUNNING_IN_CONTAINER=true ENV DOTNET_RUNNING_IN_CONTAINER=true
# Set the time zone
ENV TZ=UTC
ENTRYPOINT [ "/bin/bash" ] ENTRYPOINT [ "/bin/bash" ]
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]