Skip to content

Commit

Permalink
Add SECRET_KEY_BASE to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo committed Dec 28, 2023
1 parent 518ee26 commit 746cadd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions containers/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ ENV DATABASE_URL=sqlite3:db/db.sqlite3
# For those self-hosting this app, you should
# generate your own secret_key_base and set it
# in your environment.
# 1. Generate a secret_key_base with:
# bundle exec rake secret
# 1. Generate a secret_key_base value with:
# bundle exec rails secret
# 2. Set the secret_key_base in your environment:
# SECRET_KEY_BASE=<value>
ENV SECRET_KEY_BASE=662e5f1c1f71b78c6fc0455cf72b590aefc7e924bbe356556c8dacd18fa0c6a5d7d4908afc7627bd1d6cb5ce95b610eeb64f538079d1fe07ef3d73b43ac0f8b0
Expand Down Expand Up @@ -92,6 +92,16 @@ ENV APP_ROOT=/opt/PasswordPusher
WORKDIR ${APP_ROOT}
ENV RACK_ENV=production RAILS_ENV=production

# Set a default secret_key_base
# For those self-hosting this app, you should
# generate your own secret_key_base and set it
# in your environment.
# 1. Generate a secret_key_base value with:
# bundle exec rails secret
# 2. Set the secret_key_base in your environment:
# SECRET_KEY_BASE=<value>
ENV SECRET_KEY_BASE=662e5f1c1f71b78c6fc0455cf72b590aefc7e924bbe356556c8dacd18fa0c6a5d7d4908afc7627bd1d6cb5ce95b610eeb64f538079d1fe07ef3d73b43ac0f8b0

COPY --from=build-env --chown=pwpusher:pwpusher ${APP_ROOT} ${APP_ROOT}

RUN bundle config set without "${BUNDLE_WITHOUT}" \
Expand Down

0 comments on commit 746cadd

Please sign in to comment.