summaryrefslogtreecommitdiff
path: root/_ci
diff options
context:
space:
mode:
Diffstat (limited to '_ci')
-rw-r--r--_ci/Containerfile2
-rw-r--r--_ci/Containerfile.alpine11
2 files changed, 12 insertions, 1 deletions
diff --git a/_ci/Containerfile b/_ci/Containerfile
index 35c377a..2621a03 100644
--- a/_ci/Containerfile
+++ b/_ci/Containerfile
@@ -4,7 +4,7 @@ COPY Gemfile* ./
RUN bundle install
FROM docker.io/library/ruby:3.3-slim
-RUN apt-get update && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/*
+RUN apt-get update && apt-get install --no-install-recommends -y git && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /srv/jekyll
COPY --from=builder /usr/local/bundle /usr/local/bundle
COPY --from=builder /srv/jekyll /srv/jekyll
diff --git a/_ci/Containerfile.alpine b/_ci/Containerfile.alpine
new file mode 100644
index 0000000..dbef281
--- /dev/null
+++ b/_ci/Containerfile.alpine
@@ -0,0 +1,11 @@
+FROM docker.io/library/ruby:3.3-alpine3.23 AS builder
+WORKDIR /srv/jekyll
+RUN apk update && apk add --no-cache alpine-sdk && rm -rf /var/cache/apk/*
+COPY Gemfile* ./
+RUN bundle install
+
+FROM docker.io/library/ruby:3.3-alpine3.23
+RUN apk update && apk add --no-cache git libstdc++ && rm -rf /var/cache/apk/*
+WORKDIR /srv/jekyll
+COPY --from=builder /usr/local/bundle /usr/local/bundle
+CMD ["bundle", "exec", "jekyll", "build"]