fork and modify dockerfile for prod

This commit is contained in:
2024-02-09 10:53:19 +01:00
commit 4d231a3ce8
21 changed files with 721 additions and 0 deletions

16
dockerfile Normal file
View File

@@ -0,0 +1,16 @@
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