Skip to content

Commit

Permalink
Copy everything to usr/src/app for precompiling to work & fix `publ…
Browse files Browse the repository at this point in the history
…ic/` folder mount

Also see https://stackoverflow.com/a/37898591/
  • Loading branch information
Splines committed Jun 1, 2024
1 parent 43c3b90 commit 5ec9818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions docker/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
7 changes: 2 additions & 5 deletions docker/test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -76,6 +76,3 @@ services:
networks:
- backend
- frontend

volumes:
public:

0 comments on commit 5ec9818

Please sign in to comment.