mirror of
https://github.com/KevinMidboe/schleppe-lab.git
synced 2026-01-05 17:05:51 +00:00
Dockerfile & nginx configurations
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
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 .
|
||||
|
||||
Reference in New Issue
Block a user