Files
schleppe-lab/Dockerfile

28 lines
549 B
Docker

FROM ruby:3.1-slim-bullseye as jekyll
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt
COPY . .
RUN gem update --system && gem install jekyll bundler
# RUN gem update --system && gem install jekyll && gem cleanup
RUN bundle install && jekyll build
ENTRYPOINT [ "jekyll" ]
CMD [ "--help" ]
# build from the image we just built with different metadata
FROM nginx:alpine
WORKDIR /app
COPY nginx.conf /etc/nginx
COPY --from=jekyll /opt/_site .