# DeskRecord website: static files served by nginx.
# Build the site first (node build.mjs), then:  docker build -t karrarmaher/deskrecord-web:<version> .
FROM nginx:stable-alpine
LABEL org.opencontainers.image.title="DeskRecord website" \
      org.opencontainers.image.description="Landing page, brand kit and downloads for DeskRecord" \
      org.opencontainers.image.licenses="GPL-2.0-or-later" \
      org.opencontainers.image.url="https://deskrecord.diviki.com"
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY dist/ /usr/share/nginx/html/
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=4s --retries=3 CMD wget -q -O /dev/null http://127.0.0.1/ || exit 1
