Applied better fix for tz issue

This commit is contained in:
Kieran Eglin 2024-05-07 17:07:36 -07:00
parent 7b8a6a9aed
commit a49490ceb9
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 3 additions and 3 deletions

View file

@ -7,6 +7,8 @@ import Config
# before starting your production server.
config :pinchflat, PinchflatWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
config :tzdata, :data_dir, "/etc/elixir_tzdata_data"
# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Pinchflat.Finch

View file

@ -116,7 +116,7 @@ ENV LC_ALL en_US.UTF-8
WORKDIR "/app"
# Set up data volumes
RUN mkdir /config /downloads
RUN mkdir /config /downloads /etc/elixir_tzdata_data && chmod ugo+rw /etc/elixir_tzdata_data
# set runner ENV
ENV MIX_ENV="prod"
@ -126,8 +126,6 @@ EXPOSE ${PORT}
# Only copy the final release from the build stage
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
# (ie: most environments). This is only acceptable in a self-hosted environment.