Init
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM nginx:mainline-alpine
|
||||
|
||||
# Install hugo
|
||||
RUN apk add hugo git
|
||||
|
||||
# Copy over auxiliary scripts
|
||||
COPY aux /aux
|
||||
|
||||
# Cron hook for pulling and building
|
||||
RUN echo "10 * * * * /aux/pull-n-build.sh" >> /var/spool/cron/crontabs/root
|
||||
|
||||
# bootstrap script, basically cron && build
|
||||
# after that, the base-image-specific CMD will kick in, which is quite complex
|
||||
ENTRYPOINT /aux/bootstrap.sh
|
||||
|
||||
Reference in New Issue
Block a user