Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
###

# The FROM command specifies a base image to start with. We're using an Alpine Linux base because it's small (around 5MB), together with a Ruby installation
# that matches GitHub Pages' current Ruby version (2.7.3-alpine3.13 as of 08/03/2022, ruby:2.7.4-alpine3.14 as of 8/18/2022)
FROM ruby:2.7.4-alpine3.14 AS build
# that matches GitHub Pages' current Ruby version (2.7.3-alpine3.13 as of 08/03/2022, ruby:2.7.4-alpine3.14 as of 8/18/2022, ruby:3.3.4-alpine3.20 as of 8/19/2024 )
FROM ruby:3.3.4-alpine3.20 AS build

# Set Ruby ENV variables
ENV GEM_BIN=/usr/gem/bin
Expand Down Expand Up @@ -72,7 +72,7 @@ RUN gem install github-pages -- \
### BUILD STAGE 2
###

FROM ruby:2.7.4-alpine3.14
FROM ruby:3.3.4-alpine3.20
LABEL maintainer "Jordon Bedwell <[email protected]>"

# Copy shell scripts from the Dockerfile directory into the root of the new build stage.
Expand All @@ -98,6 +98,7 @@ ENV LANGUAGE=en_US
RUN apk --no-cache add \
bash \
su-exec
openssl

# Copy the github-pages gem we installed during stage 1 into an identical folder within the new build stage.
COPY --from=build /usr/gem/ /usr/gem/
Expand Down