From 1e7e7d168e15b8d03994f939b3cb33104e2da50f Mon Sep 17 00:00:00 2001 From: Splines Date: Tue, 12 Mar 2024 17:48:19 +0100 Subject: [PATCH] Use automatic export of env variables by setting `set -o allexport` (or equivalently: `set -a`). --- docker/production/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 13ac07b77..c1856e773 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -112,5 +112,5 @@ COPY --chown=app:app . /usr/src/app COPY ./docker/production/docker.env ./docker-dummy.env RUN cp -r $(bundle info --path sidekiq)/web/assets /usr/src/app/public/sidekiq && \ - . ./docker-dummy.env && \ + set -o allexport && . ./docker-dummy.env && set +o allexport && \ SECRET_KEY_BASE="$(bundle exec rails secret)" DB_ADAPTER=nulldb bundle exec rails assets:precompile