jekyll_docker/Dockerfile

16 lines
329 B
Docker

FROM ruby:3.2.2
RUN useradd -ms /bin/bash --uid 1000 jekyll
RUN mkdir -p -m 0755 /app/jekyll
RUN mkdir -p -m 0755 /opt/jekyll
COPY ./entrypoint.sh /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"]