Aggiunto Dockerfile

This commit is contained in:
Michele Giacomoli
2026-03-20 01:59:14 +01:00
commit 57f3b99a7d

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM ubuntu:24.04
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y nginx && apt-get clean
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN sed -i -e 's%location / {%location \/ {\n\t\tautoindex on;%g' /etc/nginx/sites-enabled/default
EXPOSE 80
CMD ["nginx", "-g", "daemon off;", "-c", "/etc/nginx/nginx.conf"]