fork and modify dockerfile for prod
This commit is contained in:
16
dockerfile
Normal file
16
dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user