From 7b632954fc6b2944b718a9c0f5e2697521370352 Mon Sep 17 00:00:00 2001 From: Trinity Takei Date: Wed, 4 Sep 2024 13:33:30 +0200 Subject: [PATCH] deploying, #4 --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e94d71..f8d812b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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