Skip to content

Commit

Permalink
deploying, #4
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitytakei committed Sep 4, 2024
1 parent 4d320af commit 7b63295
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ FROM base AS build

# Install packages needed to build gems and node modules
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential git node-gyp pkg-config python-is-python3 && \
apt-get install --no-install-recommends -y build-essential git node-gyp pkg-config python-is-python3 libgmp-dev && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives

# Install JavaScript dependencies
Expand All @@ -51,9 +51,8 @@ RUN yarn install --frozen-lockfile
# Copy application code
COPY . .

RUN bundle install
RUN bundle exec bootsnap precompile app/ lib/
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
RUN bundle config set --local build.nokogiri --use-system-libraries
RUN bundle install --jobs 4 --retry 3

# Final stage for app image
FROM base
Expand Down

0 comments on commit 7b63295

Please sign in to comment.