summaryrefslogtreecommitdiff
path: root/_ci/Containerfile.alpine
diff options
context:
space:
mode:
Diffstat (limited to '_ci/Containerfile.alpine')
-rw-r--r--_ci/Containerfile.alpine11
1 files changed, 11 insertions, 0 deletions
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"]