Fixed issue with tzdata file permissions

This commit is contained in:
Kieran Eglin 2024-05-07 16:59:02 -07:00
parent 1c2b867f3c
commit 7b8a6a9aed
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -126,6 +126,8 @@ EXPOSE ${PORT}
# Only copy the final release from the build stage # Only copy the final release from the build stage
COPY --from=builder /app/_build/${MIX_ENV}/rel/pinchflat ./ COPY --from=builder /app/_build/${MIX_ENV}/rel/pinchflat ./
# Update permissions to let the app write the tzdata files
RUN chmod ugo+rw /app/lib/tzdata-*/priv/*
# NEVER do this if you're running in an environment where you don't trust the user # NEVER do this if you're running in an environment where you don't trust the user
# (ie: most environments). This is only acceptable in a self-hosted environment. # (ie: most environments). This is only acceptable in a self-hosted environment.