Browse Source

another update to Dockerfile

master
lenape 3 months ago
parent
commit
f77889ac73
  1. 3
      Dockerfile

3
Dockerfile

@ -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

Loading…
Cancel
Save