13 lines
322 B
Docker
Executable file
13 lines
322 B
Docker
Executable file
FROM nginx:latest
|
|
RUN apt-get update && apt-get install -y cron && apt-get clean
|
|
|
|
COPY cron-restart-nginx /etc/cron.d/cron-restart-nginx
|
|
|
|
RUN chmod 0644 /etc/cron.d/cron-restart-nginx
|
|
|
|
RUN crontab /etc/cron.d/cron-restart-nginx
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|