diff --git a/containers/docker/Dockerfile b/containers/docker/Dockerfile index 69f8a77e10b..0616166872f 100644 --- a/containers/docker/Dockerfile +++ b/containers/docker/Dockerfile @@ -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= ENV SECRET_KEY_BASE=662e5f1c1f71b78c6fc0455cf72b590aefc7e924bbe356556c8dacd18fa0c6a5d7d4908afc7627bd1d6cb5ce95b610eeb64f538079d1fe07ef3d73b43ac0f8b0 @@ -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= +ENV SECRET_KEY_BASE=662e5f1c1f71b78c6fc0455cf72b590aefc7e924bbe356556c8dacd18fa0c6a5d7d4908afc7627bd1d6cb5ce95b610eeb64f538079d1fe07ef3d73b43ac0f8b0 + COPY --from=build-env --chown=pwpusher:pwpusher ${APP_ROOT} ${APP_ROOT} RUN bundle config set without "${BUNDLE_WITHOUT}" \