another update to Dockerfile
This commit is contained in:
1 parent
0d78d9a713
commit
f77889ac73
1 file changed
+1
-2
+1
-2
@@ -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