Skip to content

Commit

Permalink
change default image, leave curl alone, build faster with bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Mar 20, 2024
1 parent cf5cf48 commit 1462241
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ruby:2.7.8
ARG BASE_IMAGE=ghcr.io/betadots/ruby:2.7.8

FROM $BASE_IMAGE

Expand Down Expand Up @@ -37,8 +37,9 @@ COPY Dockerfile /

RUN apt-get update && apt-get upgrade -y \
&& bundle config set path.system true \
&& bundle config set jobs $(nproc) \
&& bundle install --gemfile=/Gemfile \
&& apt-get purge -y curl "libcurl*" "libaom*" python3.9 \
&& apt-get purge -y "libaom*" \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 1462241

Please sign in to comment.