Files
2026-07-27 16:44:10 +08:00

13 lines
496 B
Docker

FROM nginx:1.29.5-alpine
COPY --chmod=0644 nginx.conf /etc/nginx/conf.d/default.conf
COPY --chmod=0644 index.html /usr/share/nginx/html/index.html
RUN install -d -m 0755 /usr/share/nginx/html/assets
COPY --chmod=0644 assets/styles.css /usr/share/nginx/html/assets/styles.css
COPY --chmod=0644 assets/app.js /usr/share/nginx/html/assets/app.js
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -q -O /dev/null http://127.0.0.1:8080/health || exit 1