pages-gem/Dockerfile.alpine

23 строки
523 B
Docker

FROM ruby:2.7.3-alpine
RUN apk update && apk add --no-cache \
git
COPY . /src/gh/pages-gem
# one step to exclude .build_deps from docker cache
RUN apk update && apk add --no-cache --virtual .build_deps \
make \
build-base && \
bundle config local.github-pages /src/gh/pages-gem && \
bundle install --gemfile=/src/gh/pages-gem/Gemfile && \
apk del .build_deps
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
WORKDIR /src/site
CMD ["jekyll", "serve", "-H", "0.0.0.0", "-P", "4000"]