From c41e77dff088364527c22fe71211f0a69135f66c Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Sun, 11 Jun 2023 21:49:30 +0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 171909ed09..4aa44400bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ COPY lib/gemfile_helper.rb /app/lib/ COPY vendor/gems/ /app/vendor/gems/ COPY ./ /app/ COPY .env.example .env +COPY cleanup.sh cleanup.sh RUN apt update && \ apt install -y --no-install-recommends build-essential checkinstall git-core \ zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses-dev libffi-dev libxml2-dev libxslt-dev curl libcurl4-openssl-dev \ @@ -33,7 +34,8 @@ RUN apt update && \ git init && \ LC_ALL=en_US.UTF-8 RAILS_ENV=production bundle config set --local path vendor/bundle && \ LC_ALL=en_US.UTF-8 RAILS_ENV=production bundle config set --local without 'test development' && \ - LC_ALL=en_US.UTF-8 RAILS_ENV=production bundle install --jobs=$(nproc) + LC_ALL=en_US.UTF-8 RAILS_ENV=production bundle install --jobs=$(nproc) && \ + bash cleanup.sh FROM ruby:3.2-slim-bullseye