Skip to content

Commit

Permalink
Speed up docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Oct 16, 2024
1 parent a3ca215 commit afdd2a3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ruby:3.3.5-alpine3.19
FROM ruby:3.3.5-alpine

ENV APP_ROOT /usr/src/app
ENV DATABASE_PORT 5432
ENV APP_ROOT=/usr/src/app
ENV DATABASE_PORT=5432
WORKDIR $APP_ROOT

# * Setup system
Expand All @@ -21,9 +21,8 @@ RUN apk add --update \
# Will invalidate cache as soon as the Gemfile changes
COPY Gemfile Gemfile.lock $APP_ROOT/

RUN bundle config --global frozen 1 \
&& bundle config set without 'test' \
&& bundle install --jobs 2
RUN bundle config set without 'test development' \
&& bundle install --jobs 8

# ========================================================
# Application layer
Expand Down

0 comments on commit afdd2a3

Please sign in to comment.