26 lines
No EOL
872 B
Docker
26 lines
No EOL
872 B
Docker
FROM nginx:stable-alpine3.20
|
|
COPY default.conf.template /etc/nginx/templates/default.conf.template
|
|
|
|
RUN apk --no-cache add nodejs npm bash dumb-init git && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
WORKDIR /quartz
|
|
ENV USER_ID=1000
|
|
ENV GROUP_ID=1000
|
|
ENV CONTENT_REPO=""
|
|
ENV NGINX_PORT=80
|
|
ENV SERVER_NAME="quartz.zhao.xyz"
|
|
ENV ENABLE_CRON="false"
|
|
ENV BUILD_SCHEDULE="*/5 * * * *"
|
|
|
|
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>" |