another update to Dockerfile

This commit is contained in:
lenape
2025-03-04 23:00:01 +00:00
parent 0d78d9a713
commit f77889ac73

View File

@@ -1,12 +1,11 @@
FROM python:3.9-slim-buster
RUN apt-get update && apt-get install -y nginx
RUN apt-get update && DEBIAN_FRONTEND=noninteractive 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