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 01:42:12 +00:00
|
|
|
RUN apk --no-cache add nodejs npm bash dumb-init git busybox-suid && \
|
|
|
|
rm -rf /var/cache/apk/*
|
2025-01-17 00:27:12 +00:00
|
|
|
|
2025-01-18 01:42:12 +00:00
|
|
|
WORKDIR /quartz
|
|
|
|
ENV CONTENT_REPO=""
|
2025-01-17 20:46:39 +00:00
|
|
|
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>"
|