Skip to content

Commit

Permalink
Source dummy docker env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Apr 28, 2024
1 parent eb0a4b7 commit 69e12a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 69e12a9

Please sign in to comment.