Skip to content

Commit

Permalink
Remove handling of packages file from Dockerfile
Browse files Browse the repository at this point in the history
I could never get it to work and it just complicated the Dockerfile.
  • Loading branch information
CoffeeCoder1 committed Nov 30, 2024
1 parent 0ea078b commit 4342aec
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ruby:3.3.0-alpine3.19
ENV SETUPDIR=/setup
WORKDIR ${SETUPDIR}
ARG GEMFILE_DIR=.
COPY $GEMFILE_DIR/Gemfile* $GEMFILE_DIR/packages* .
COPY $GEMFILE_DIR/Gemfile* .

# Install build dependencies
RUN set -eux; \
Expand All @@ -15,13 +15,7 @@ RUN set -eux; \
# Install Bundler
RUN set -eux; gem install bundler

# Install extra packages if needed
RUN set -eux; \
if [ -e packages ]; then \
cat packages | apk add --no-cache --virtual extra-pkgs; \
fi

# Insatll ImageMagick and librsvg
# Install ImageMagick and librsvg
RUN set -eux; apk add imagemagick librsvg

# Install gems from `Gemfile` via Bundler
Expand All @@ -41,4 +35,4 @@ RUN set -eux; \

EXPOSE 4000
ENTRYPOINT ["bundler", "exec", "jekyll"]
CMD ["--version"]
CMD ["--version"]

0 comments on commit 4342aec

Please sign in to comment.