1
0
Fork 0
llvm-premerge-checks/containers/nginx-results/Dockerfile
2019-10-07 09:39:35 +02:00

16 lines
No EOL
372 B
Docker

FROM nginx:1.17
RUN set -e ;\
apt-get update ;\
apt-get install -y --no-install-recommends python3 cron;\
apt-get clean
RUN mkdir -p /scripts
COPY run_nginx.sh clean_results.py /scripts/
COPY default.conf /etc/nginx/conf.d/
COPY crontab /etc/cron.d/clean_results
RUN chmod 0644 /etc/cron.d/clean_results
RUN service cron start
CMD ["/scripts/run_nginx.sh"]