Files
python-jenkins-project/Dockerfile

15 lines
378 B
Docker
Raw Normal View History

2025-03-04 18:49:45 +00:00
FROM python:3.9-slim-buster
2025-03-04 23:00:01 +00:00
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y nginx
2025-03-04 18:49:45 +00:00
COPY index.html /usr/share/nginx/html/index.html
2025-03-04 22:37:42 +00:00
RUN sed -i 's|root /var/www/html;|root /usr/share/nginx/html;|' /etc/nginx/sites-available/default && \
nginx -t && \
2025-03-04 23:05:33 +00:00
nginx -g 'daemon off;' & \
2025-03-04 22:37:42 +00:00
nginx -s reload
2025-03-04 18:49:45 +00:00
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]