Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
martadinata666 committed Nov 28, 2023
1 parent 93f686e commit c41e77d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ 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 \
libicu-dev graphviz libmariadb-dev libpq-dev libsqlite3-dev locales tzdata shared-mime-info iputils-ping jq && \
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
Expand Down

0 comments on commit c41e77d

Please sign in to comment.