Merge branch 'alpine-docker' into 'master'

Converting Dockerfile to use the alpine image

See merge request lsm-hpce/lsm-hpce.gitpages.psi.ch!1
This commit was merged in pull request #7.
This commit is contained in:
2021-06-25 21:35:09 +02:00
2 changed files with 12 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ stages:
- test
- deploy
image: alpine:latest
image: alpine:3.13
variables:
JEKYLL_ENV: production

View File

@@ -1,11 +1,19 @@
FROM jekyll/builder
FROM alpine:3.13
WORKDIR /tmp
ADD Gemfile /tmp/
ADD Gemfile.lock /tmp/
RUN bundle install --frozen
FROM jekyll/jekyll
RUN apk list -I && \
apk --no-cache add libatomic readline readline-dev libxml2 libxml2-dev \
ncurses-terminfo-base ncurses-terminfo \
libxslt libxslt-dev zlib-dev zlib \
ruby ruby-dev yaml yaml-dev \
libffi-dev build-base git nodejs
RUN pwd && \
ls -l
RUN gem install etc bundler --no-document
RUN bundle install
VOLUME /src
EXPOSE 4001