7 lines
273 B
Docker
7 lines
273 B
Docker
FROM nginx:1.27-alpine
|
|
COPY web /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 8080
|
|
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=5 CMD wget -q -O- http://127.0.0.1:8080/health || exit 1
|
|
CMD ["nginx", "-g", "daemon off;"]
|