quartz-docker/Dockerfile

26 lines
872 B
Text
Raw Permalink Normal View History

2025-01-17 00:27:12 +00:00
FROM nginx:stable-alpine3.20
COPY default.conf.template /etc/nginx/templates/default.conf.template
2025-01-18 21:06:17 +00:00
RUN apk --no-cache add nodejs npm bash dumb-init git && \
2025-01-18 01:42:12 +00:00
rm -rf /var/cache/apk/*
2025-01-17 00:27:12 +00:00
2025-01-18 01:42:12 +00:00
WORKDIR /quartz
2025-01-18 01:47:37 +00:00
ENV USER_ID=1000
ENV GROUP_ID=1000
2025-01-18 21:06:49 +00:00
ENV CONTENT_REPO=""
ENV NGINX_PORT=80
2025-01-17 22:23:53 +00:00
ENV SERVER_NAME="quartz.zhao.xyz"
2025-01-17 02:30:25 +00:00
ENV ENABLE_CRON="false"
2025-01-18 01:42:12 +00:00
ENV BUILD_SCHEDULE="*/5 * * * *"
2025-01-17 00:27:12 +00:00
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["dumb-init", "--"]
CMD ["/entrypoint.sh"]
LABEL org.opencontainers.image.source="https://code.modernleft.org/gravityfargo/quartz-docker"
LABEL org.opencontainers.image.url="https://quartz.jzhao.xyz/"
LABEL org.opencontainers.image.description="A docker image for Quartz, a static site generator."
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.authors="Nathan Price <gravityfargo@gmodernleft.org>"