From 69e12a971305e6b661f30867fc9fcf19454f7447 Mon Sep 17 00:00:00 2001 From: Splines Date: Sun, 28 Apr 2024 12:33:16 +0200 Subject: [PATCH] Source dummy docker env variables --- docker/test/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/test/Dockerfile b/docker/test/Dockerfile index f37415d1a..93a7dfaa4 100644 --- a/docker/test/Dockerfile +++ b/docker/test/Dockerfile @@ -66,5 +66,8 @@ RUN yarn install --production=false COPY --from=build-pdfcomprezzor /go/src/pdfcomprezzor.wasm /go/src/wasm_exec.js /usr/src/app/public/pdfcomprezzor/ COPY --from=build-pdfcomprezzor /go/src/pdfcomprezzor.wasm /go/src/wasm_exec.js / -COPY ./ /usr/src/app/ -RUN RAILS_ENV=test TEST_DATABASE_ADAPTER=postgresql rake assets:precompile +COPY . /usr/src/app/ +COPY ./docker/production/docker.env ./docker-dummy.env + +RUN set -o allexport && . ./docker-dummy.env && set +o allexport && \ + SECRET_KEY_BASE="$(bundle exec rails secret)" DB_ADAPTER=nulldb bundle exec rails assets:precompile