16 lines
507 B
Docker
16 lines
507 B
Docker
# Lightweight static host for the homelab dashboard.
|
|
# Builds a small nginx image that serves index.html + assets.
|
|
FROM nginx:1.27-alpine
|
|
|
|
# Copy the site (static files only — no build step needed)
|
|
COPY index.html style.css script.js /usr/share/nginx/html/
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# nginx listens on port 80
|
|
EXPOSE 80
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD wget -q --spider http://127.0.0.1:80/ || exit 1
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|