Umguza-Guardian / Dockerfile
KarlQuant's picture
Update Dockerfile
5f7ca5c verified
raw
history blame contribute delete
989 Bytes
# UMGUZA GUARDIAN — Operational Dashboard
# Hugging Face Spaces · Static HTML deployment
#
# Team:
# Bongani G. Ncube — Team Lead · Civil Engineering · N02124919N
# Tatenda Karl Muzunze — ML/Controls Lead · N02644643V
#
# NUST · Department of Civil and Water Engineering · Bulawayo, Zimbabwe
# MBR Global Water Award · 5th Cycle · Student Category
FROM nginx:alpine
EXPOSE 7860
# Copy dashboard into nginx web root
COPY dashboard_mobile.html /usr/share/nginx/html/index.html
COPY nust_logo.png /usr/share/nginx/html/nust_logo.png
# Write nginx config — listen on 7860, allow iframe embedding
RUN printf 'server {\n listen 7860;\n server_name _;\n root /usr/share/nginx/html;\n index index.html;\n location / {\n try_files $uri $uri/ /index.html;\n add_header X-Frame-Options "ALLOWALL";\n add_header Content-Security-Policy "frame-ancestors *";\n }\n}\n' > /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]