Skip to content

Commit

Permalink
ruby: Fix Dockerfiles for Jekyll/Liquid images
Browse files Browse the repository at this point in the history
Both images would not build for recent Alpine.

The Jekyll Docker image would fail upon running ruby with a segmentation
fault, at least on aarch64 macOS.

Update the Alpine apk dependencies, and change the Jekyll base image to
a ruby-provided Alpine build.
  • Loading branch information
kohlschuetter committed Dec 27, 2023
1 parent 4dd315e commit c6f7b44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
12 changes: 2 additions & 10 deletions ruby/docker_images/jekyll/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:latest
FROM ruby:3.3-alpine

RUN mkdir -p /usr/local/etc \
&& { \
Expand All @@ -7,18 +7,10 @@ RUN mkdir -p /usr/local/etc \
} >> /etc/gemrc

RUN apk update && apk add --no-cache \
ruby \
ruby-irb \
ruby-json \
ruby-bundler \
ruby-bigdecimal \
ruby-dev \
build-base \
libssl1.1 \
build-base \
libc6-compat

RUN gem install jekyll
RUN gem install ruby-debug-ide

RUN mkdir -p /srv/jekyll
WORKDIR /srv/jekyll
Expand Down
8 changes: 4 additions & 4 deletions ruby/docker_images/liquid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ RUN apk update && apk add --no-cache \
ruby-json \
ruby-bundler \
ruby-bigdecimal \
ruby-dev \
build-base \
libssl1.1 \
libc6-compat
ruby-dev \
build-base \
libc6-compat \
linux-headers

RUN gem install liquid
RUN gem install ruby-debug-ide
Expand Down

0 comments on commit c6f7b44

Please sign in to comment.