From bf901ba533c00cbc222d212d83088d08e476848f Mon Sep 17 00:00:00 2001 From: Muhammad Denaw Date: Fri, 19 May 2023 01:33:07 +0700 Subject: [PATCH] [FIX] Docker Gemfile Volume --- Dockerfile | 2 +- docker-compose.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 650e6e1..2e3914a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . diff --git a/docker-compose.yml b/docker-compose.yml index 1f94ff5..4b3d8e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" @@ -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: @@ -92,3 +94,4 @@ services: volumes: postgres: {} redis: {} + bundle_cache: {}