Add files via upload

This commit is contained in:
Twilight
2024-04-17 18:54:04 +08:00
committed by GitHub
parent a716b99560
commit 494e19dcb7
2 changed files with 20 additions and 1 deletions

18
challenges/web/Dockerfile Normal file
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;"]

View File

@@ -1 +1,2 @@
This dir contains challenges related to web Challenge Name: Warmup Web
Challenge Description: Simple flag but why.html is it not showing?