Files
python-jenkins-project/Dockerfile
2025-03-04 22:42:11 +00:00

15 lines
348 B
Docker

FROM python:3.9-slim-buster
RUN apt-get update && apt-get install -y nginx
COPY index.html /usr/share/nginx/html/index.html
RUN sed -i 's|root /var/www/html;|root /usr/share/nginx/html;|' /etc/nginx/sites-available/default && \
nginx -t && \
nginx -g 'daemon off;' && \
nginx -s reload
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]