14 lines
452 B
Text
14 lines
452 B
Text
|
|
# Static-bundle bot — nginx:alpine serves www/ on port 80.
|
||
|
|
FROM nginx:1.27-alpine
|
||
|
|
|
||
|
|
# nginx config: gzip + cache headers + index.html no-store
|
||
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||
|
|
|
||
|
|
# Static bundle
|
||
|
|
COPY www/ /usr/share/nginx/html/
|
||
|
|
|
||
|
|
# Run as non-root via nginx's built-in unprivileged image features
|
||
|
|
EXPOSE 80
|
||
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||
|
|
CMD wget -q --spider http://127.0.0.1/index.html || exit 1
|