FROM node:22-alpine AS builder ARG HOST="adelie.liz.coffee" ENV HOST=${HOST} WORKDIR /app COPY package*.json ./ RUN npm ci --only=production COPY src/ ./src/ COPY esbuild.config.js ./ RUN npm run build FROM nginx:alpine as adelie COPY --from=builder /app/dist/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/nginx.conf EXPOSE 80 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD wget --quiet --tries=1 --spider http://localhost/ || exit 1 CMD ["nginx", "-g", "daemon off;"]