Add 'Dockerfile'
This commit is contained in:
parent
be9270467c
commit
8702dd12a9
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM jekyll/builder as builder
|
||||||
|
RUN apk update && apk add --update nodejs nodejs-npm
|
||||||
|
WORKDIR /app/jekyll
|
||||||
|
COPY ./jekyll/Gemfile* /app/jekyll/
|
||||||
|
RUN bundle install
|
||||||
|
COPY ./jekyll /app/jekyll/
|
||||||
|
RUN mkdir -p /app/jekyll/_site && jekyll build
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
LABEL maintainer="Sthope <hopelessautomations@gmail.com>"
|
||||||
|
RUN rm -f /etc/nginx/conf.d/* && rm -rf /app/*
|
||||||
|
COPY --from=builder /app/jekyll/_site /app
|
||||||
|
COPY ./nginx /etc/nginx/
|
Loading…
x
Reference in New Issue
Block a user