Files
schemas-app/Dockerfile
T

21 lines
890 B
Docker
Raw Normal View History

FROM cypress/base:26.13.0@sha256:5f5138fff456c4250cb327421f6a43e71c3feb50e46f95b3261c5bdc6f4b0531 as builder
2025-11-22 16:42:35 +01:00
WORKDIR /build
RUN npm install --global node-gyp && \
git config --global --add safe.directory /build
COPY ./package.json ./package-lock.json ./
RUN npm ci --no-progress
COPY . /build
RUN npm run postinstall && npm run generate && npm run lint && npm run test:coverage
FROM scratch as export
COPY --from=builder /build/coverage /
2025-11-22 16:42:35 +01:00
2026-10-15 21:16:08 +00:00
# Unprivileged (uid 101, port 8080): Frostmoln enforces restricted Pod Security.
FROM nginxinc/nginx-unprivileged:1.31.7@sha256:09b0d3eda2aa592d2487f284519419015cab010d7df16cd0fe224b585fc60eb6
2025-11-22 16:42:35 +01:00
MAINTAINER Joakim Olsson <joakim@unbound.se>
2026-10-15 21:16:08 +00:00
COPY --chmod=644 ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY --chmod=644 ./nginx/security_headers.conf /etc/nginx/security_headers.conf
2025-11-22 16:42:35 +01:00
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/