Skip to content

Commit

Permalink
switch to alpine
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Waffen <[email protected]>
  • Loading branch information
rwaffen committed Jul 29, 2024
1 parent 8374ea0 commit 1a94438
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=docker.io/ruby:3.2.5-bookworm
ARG BASE_IMAGE=docker.io/ruby:3.2.5-alpine3.20

FROM $BASE_IMAGE

Expand Down Expand Up @@ -45,16 +45,13 @@ COPY voxbox/Gemfile /
COPY voxbox/Rakefile /
COPY Dockerfile /

RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y yamllint \
&& apt-get autoremove -y \
&& apt-get clean \
RUN apk update \
&& apk upgrade \
&& apk add --no-cache --update alpine-sdk \
&& apk add --no-cache --update yamllint \
&& bundle config set path.system true \
&& bundle config set jobs $(nproc) \
&& bundle install --gemfile=/Gemfile \
&& apt-get purge -y "libaom*" linux-libc-dev "libmagick*" "imagemagick-*" \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/local/lib/ruby/gems/*/cache/* \
&& rm -rf /usr/local/lib/ruby/gems/2.7.0/gems/cgi-0.1.0.2 \
&& rm -rf /usr/local/lib/ruby/gems/2.7.0/specifications/default/cgi-0.1.0.2.gemspec \
Expand Down
4 changes: 2 additions & 2 deletions build_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": [
{
"puppet_release": 7,
"base_image": "ghcr.io/betadots/ruby:2.7.8-focal",
"base_image": "docker.io/ruby:2.7.8-alpine3.16",
"rubygem_puppet": "7.31.0",
"rubygem_facter": "4.7.1",
"rubygem_voxpupuli_test": "8.1.0",
Expand All @@ -17,7 +17,7 @@
},
{
"puppet_release": 8,
"base_image": "docker.io/ruby:3.2.5-bookworm",
"base_image": "docker.io/ruby:3.2.5-alpine3.20",
"rubygem_puppet": "8.7.0",
"rubygem_facter": "4.7.1",
"rubygem_voxpupuli_test": "8.1.0",
Expand Down

0 comments on commit 1a94438

Please sign in to comment.