1
0
Fork 0
llvm-premerge-checks/containers/nginx-results/Dockerfile

16 lines
383 B
Text
Raw Normal View History

2019-10-05 08:43:30 +02:00
FROM nginx:1.17
2019-10-05 10:35:32 +02:00
2019-10-05 12:15:16 +02:00
RUN set -e ;\
apt-get update ;\
apt-get install -y --no-install-recommends python3 cron;\
apt-get clean
2019-10-05 10:35:32 +02:00
RUN mkdir -p /scripts
2019-10-05 12:15:16 +02:00
COPY index.html run_nginx.sh clean_results.py /scripts/
2019-10-05 10:35:32 +02:00
COPY default.conf /etc/nginx/conf.d/
2019-10-05 12:15:16 +02:00
COPY crontab /etc/cron.d/clean_results
RUN chmod 0644 /etc/cron.d/clean_results
RUN service cron start
2019-10-05 10:35:32 +02:00
CMD ["/scripts/run_nginx.sh"]