Skip to content

Commit

Permalink
Update Dockerfile.dev and build_and_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Freika committed Jan 30, 2025
1 parent 375c50d commit c80161d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: |
BUNDLE_FORCE_RUBY_PLATFORM=1
3 changes: 3 additions & 0 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN apk -U add --no-cache \
git \
postgresql-dev \
postgresql-client \
libpq \
libxml2-dev \
libxslt-dev \
nodejs \
Expand All @@ -22,6 +23,7 @@ RUN apk -U add --no-cache \
less \
yaml-dev \
gcompat \
linux-headers \
&& mkdir -p $APP_PATH

# Update gem system and install bundler
Expand All @@ -35,6 +37,7 @@ COPY ../Gemfile ../Gemfile.lock ../.ruby-version ../vendor ./

# Install all gems into the image
RUN bundle config set --local path 'vendor/bundle' \
&& bundle config build.pg --with-pg-config=/usr/bin/pg_config \
&& bundle install --jobs 4 --retry 3 \
&& rm -rf vendor/bundle/ruby/3.3.0/cache/*.gem

Expand Down

0 comments on commit c80161d

Please sign in to comment.