jekyll_docker/Dockerfile
2023-11-23 00:05:39 +01:00

17 lines
339 B
Docker

FROM ruby:3.2.2
ARG BLOG_NAME
RUN useradd -ms /bin/bash --uid 1000 jekyll
RUN mkdir -p -m 0755 /app/jekyll
RUN mkdir -p -m 0755 /opt/jekyll
VOLUME $PWD/data:/opt/jekyll
RUN chmod +x /opt/jekyll/ && \
chown -R 1000:1000 /opt/jekyll && \
chown -R 1000:1000 /app
USER 1000
WORKDIR /app/jekyll
ENTRYPOINT ["/opt/jekyll/entrypoint.sh"]