Skip to content

Commit

Permalink
[FIX] Docker Gemfile Volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Daivasmara committed May 19, 2023
1 parent 9cda18f commit bf901ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN bundle install

ARG RAILS_ENV="production"
ENV RAILS_ENV="${RAILS_ENV}" \
PATH="${PATH}:/home/ruby/.local/bin:/node_modules/.bin" \
PATH="${PATH}:/home/ruby/.local/bin" \
USER="ruby"

COPY --chown=ruby:ruby . .
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ x-app: &default-app
- "UID=${UID:-1000}"
- "GID=${GID:-1000}"
- "RAILS_ENV=${RAILS_ENV:-production}"
- "NODE_ENV=${NODE_ENV:-production}"
depends_on:
- "postgres"
- "redis"
Expand Down Expand Up @@ -63,6 +62,9 @@ services:
retries: 3
ports:
- "${DOCKER_WEB_PORT_FORWARD:-127.0.0.1:8000}:${PORT:-8000}"
volumes:
- "bundle_cache:/usr/local/bundle"
- ".:/app"
profiles: ["api"]

worker:
Expand Down Expand Up @@ -92,3 +94,4 @@ services:
volumes:
postgres: {}
redis: {}
bundle_cache: {}

0 comments on commit bf901ba

Please sign in to comment.