Docker fix (#3508)

This commit is contained in:
Joe Milazzo 2025-01-20 08:45:46 -06:00 committed by GitHub
parent 49b47a98fc
commit 541607cc5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,8 @@ RUN mkdir /files
COPY _output/*.tar.gz /files/
COPY UI/Web/dist/browser /files/wwwroot
COPY copy_runtime.sh /copy_runtime.sh
RUN chmod +x /copy_runtime.sh
RUN /copy_runtime.sh
RUN chmod +x /Kavita/Kavita
@ -34,11 +36,11 @@ WORKDIR /kavita
HEALTHCHECK --interval=30s --timeout=15s --start-period=30s --retries=3 CMD curl -fsS http://localhost:5000/api/health || exit 1
ENV \
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
# Enable detection of running in a container
ENV DOTNET_RUNNING_IN_CONTAINER=true
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
ENTRYPOINT [ "/bin/bash" ]
CMD ["/entrypoint.sh"]