8 lines
280 B
Docker
8 lines
280 B
Docker
FROM nginx:alpine
|
|
COPY index.html /usr/share/nginx/html/index.html
|
|
RUN apk add --no-cache curl && \
|
|
ln -sf /dev/stdout /usr/share/nginx/html/health
|
|
EXPOSE 80
|
|
HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD curl -sf /health || exit 1
|
|
CMD ["nginx", "-g", "daemon off;"]
|