17 lines
361 B
Plaintext
17 lines
361 B
Plaintext
FROM ruby:3.3.0-alpine3.19 as build
|
|
|
|
COPY . /tmp/
|
|
|
|
RUN apk update \
|
|
&& apk add npm \
|
|
&& apk add --virtual build-dependencies build-base \
|
|
&& gem install bundler jekyll \
|
|
&& cd /tmp/ \
|
|
&& npm i \
|
|
&& bundle install \
|
|
&& bundle exec jekyll build
|
|
|
|
FROM nginx:1.25.3-alpine3.18 as prod
|
|
|
|
COPY --from=build /tmp/_site /usr/share/nginx/html
|