From ee56f0795bf369bb75e1c88a669d5e0c137b3d2c Mon Sep 17 00:00:00 2001 From: Teva RIOU Date: Wed, 8 Dec 2021 16:42:59 +0100 Subject: [PATCH] fix(dockerfile): make jekyll owner of build folder --- Dockerfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index be16b4cc..79b18663 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ -FROM jekyll/jekyll:4.2.0 as build-image +FROM alpine:3.13 as build-image -ENV JEKYLL_UID = 1001 -ENV JEKYLL_GID = 1001 +WORKDIR /build RUN apk update \ && apk upgrade \ @@ -9,12 +8,15 @@ RUN apk update \ build-base \ npm \ curl \ - iputils + iputils \ + ruby-full \ + ruby-dev \ + openjdk8 \ + bash +RUN gem install jekyll RUN npm install -g fsh-sushi -WORKDIR /build - COPY _updatePublisher_curl.sh _updatePublisher_curl.sh COPY _genonce.sh _genonce.sh COPY input input @@ -23,8 +25,7 @@ COPY sushi-config.yaml sushi-config.yaml COPY package-list.json package-list.json RUN ./_updatePublisher_curl.sh -y - -RUN chmod +x _updatePublisher_curl.sh _genonce.sh _gencontinuous.sh +RUN chmod +x _genonce.sh RUN ./_genonce.sh -y FROM alpine:3.13