From 8702dd12a9305df55b4886021ab8f0ebbd991885 Mon Sep 17 00:00:00 2001 From: sthope Date: Sun, 5 Sep 2021 01:20:55 +0200 Subject: [PATCH] Add 'Dockerfile' --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c1824b8 --- /dev/null +++ b/Dockerfile @@ -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 " +RUN rm -f /etc/nginx/conf.d/* && rm -rf /app/* +COPY --from=builder /app/jekyll/_site /app +COPY ./nginx /etc/nginx/ \ No newline at end of file