Skip to content

Commit

Permalink
fix(dockerfile): make jekyll owner of build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tevariou committed Dec 9, 2021
1 parent a033807 commit ee56f07
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
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 \
&& apk add --no-cache \
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
Expand All @@ -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
Expand Down

0 comments on commit ee56f07

Please sign in to comment.