diff options
| author | realtradam <[email protected]> | 2024-06-27 14:30:20 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-06-27 14:30:20 -0400 |
| commit | 8093c49a0fadf8ef3e16c1570fdd24da53be65bb (patch) | |
| tree | 636ea606ebc22cc59891c1138e2614b30c6596ca /rails-backend/Dockerfile | |
| parent | 03aeaea00fbd7d6261fd8ad7685fc81457635409 (diff) | |
| download | gameHolster-8093c49a0fadf8ef3e16c1570fdd24da53be65bb.tar.gz gameHolster-8093c49a0fadf8ef3e16c1570fdd24da53be65bb.zip | |
update dockerfile
Diffstat (limited to 'rails-backend/Dockerfile')
| -rw-r--r-- | rails-backend/Dockerfile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rails-backend/Dockerfile b/rails-backend/Dockerfile index e68d5a7..0e9ee16 100644 --- a/rails-backend/Dockerfile +++ b/rails-backend/Dockerfile @@ -14,7 +14,6 @@ ENV RAILS_ENV="production" \ BUNDLE_PATH="/usr/local/bundle" \ BUNDLE_WITHOUT="development" - # Throw-away build stage to reduce size of final image FROM base as build @@ -24,13 +23,13 @@ FROM base as build RUN apk add --update --no-cache build-base git vips postgresql-libs postgresql-dev tzdata # Install application gems -COPY Gemfile Gemfile.lock ./ +COPY rails-backend/Gemfile rails-backend/Gemfile.lock . RUN bundle install && \ rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ - bundle exec bootsnap precompile --gemfile && echo BLAAAAHHHH + bundle exec bootsnap precompile --gemfile # Copy application code -COPY . . +COPY ./rails-backend . # Precompile bootsnap code for faster boot times RUN bundle exec bootsnap precompile app/ lib/ |
