jeisaimporters-WEBSITE/Dockerfile
Dave d032e44702 docker: also copy .jpg, .svg, .webp, robots.txt and sitemap.xml into nginx root
The Dockerfile only copied *.html and *.png, so the new JPG hero,
og-image.jpg, robots.txt and sitemap.xml were silently dropped at
image build time and never reached the live container.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-19 12:49:18 +02:00

20 lines
557 B
Docker

FROM nginx:1.27-alpine
RUN rm -rf /usr/share/nginx/html/*
COPY *.html /usr/share/nginx/html/
COPY *.png /usr/share/nginx/html/
COPY *.jpg /usr/share/nginx/html/
COPY *.jpeg /usr/share/nginx/html/
COPY *.svg /usr/share/nginx/html/
COPY *.webp /usr/share/nginx/html/
COPY robots.txt /usr/share/nginx/html/
COPY sitemap.xml /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://127.0.0.1/ || exit 1
CMD ["nginx", "-g", "daemon off;"]