Add files via upload

This commit is contained in:
Twilight
2024-04-17 18:56:41 +08:00
committed by GitHub
parent 493eebecc4
commit b11e7c3791
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
FROM debian:latest
RUN apt update && apt install -y nginx
COPY ./warmweb/ /var/www/html
COPY ./warmwebconf/default /etc/nginx/conf.d/
RUN rm /etc/nginx/sites-enabled/default
RUN echo "server {" > /etc/nginx/conf.d/default.conf && \
echo " listen 52001;" >> /etc/nginx/conf.d/default.conf && \
echo " location / {" >> /etc/nginx/conf.d/default.conf && \
echo " root /var/www/html;" >> /etc/nginx/conf.d/default.conf && \
echo " index index.html index.htm;" >> /etc/nginx/conf.d/default.conf && \
echo " }" >> /etc/nginx/conf.d/default.conf && \
echo "}" >> /etc/nginx/conf.d/default.conf
EXPOSE 52001
CMD ["nginx", "-g", "daemon off;"]