# see.io site contract: serve plain HTTP on :8080 (the platform terminates TLS).
# Stage 1 generates the static site from data/*.json with a dependency-free
# Node script, so the published HTML can never drift from the source data.
FROM node:24-alpine AS build
WORKDIR /app
COPY . .
RUN node scripts/build.mjs

FROM busybox:stable
COPY --from=build /app/dist /www
COPY httpd.conf /etc/httpd.conf
EXPOSE 8080
CMD ["httpd", "-f", "-p", "8080", "-h", "/www", "-c", "/etc/httpd.conf"]
