another update to Dockerfile
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
FROM python:3.9-slim-buster
|
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
|
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 && \
|
RUN sed -i 's|root /var/www/html;|root /usr/share/nginx/html;|' /etc/nginx/sites-available/default && \
|
||||||
nginx -t && \
|
nginx -t && \
|
||||||
nginx -g 'daemon off;' && \
|
|
||||||
nginx -s reload
|
nginx -s reload
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Reference in New Issue
Block a user