diff options
| author | uvok cheetah | 2026-06-07 15:01:08 +0200 |
|---|---|---|
| committer | uvok cheetah | 2026-06-07 15:01:08 +0200 |
| commit | ef80e24f21b8ad2b1b03e2563590f187996bdd38 (patch) | |
| tree | e499eec743876dbbf70d46a3c52eb2895735ef7e | |
| parent | 4eb1729d2688ed4bff010f9bcde0bb0bb9325cf2 (diff) | |
| -rw-r--r-- | _ci/Containerfile | 2 | ||||
| -rw-r--r-- | _ci/Containerfile.alpine | 11 |
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"] |
