From 5ec9818aff064c2a1d32a0cf7a7c08e7224c5bb9 Mon Sep 17 00:00:00 2001 From: Splines Date: Sat, 1 Jun 2024 04:47:04 +0200 Subject: [PATCH] Copy everything to `usr/src/app` for precompiling to work & fix `public/` folder mount Also see https://stackoverflow.com/a/37898591/ --- docker/test/Dockerfile | 1 + docker/test/docker-compose.yml | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/test/Dockerfile b/docker/test/Dockerfile index fd9999426..470e065f5 100644 --- a/docker/test/Dockerfile +++ b/docker/test/Dockerfile @@ -67,6 +67,7 @@ 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 COPY ./docker/production/docker.env ./docker-dummy.env RUN set -o allexport && . ./docker-dummy.env && set +o allexport && \ diff --git a/docker/test/docker-compose.yml b/docker/test/docker-compose.yml index 3cef8ab87..eac665df1 100644 --- a/docker/test/docker-compose.yml +++ b/docker/test/docker-compose.yml @@ -65,9 +65,9 @@ services: SPROCKETS_CACHE: /cache BLOG: https://mampf.blog volumes: - - "public:/usr/src/app/public" - ../../:/usr/src/app/ - - ../../coverage:/usr/src/app/coverage + - ../../coverage:/usr/src/app/coverage/ + - "/usr/src/app/public/" depends_on: - db - solr @@ -76,6 +76,3 @@ services: networks: - backend - frontend - -volumes: - public: