blob: ffc3d7ca5fe22f29a58f328497421ee92fd75fb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
FROM nginx:alpine
# Copy static assets
COPY static/ /usr/share/nginx/html/
# Copy nginx configuration
COPY nginx.conf /etc/nginx/nginx.conf
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost/ || exit 1
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|