Files
openapi-ui/Dockerfile.local
typescreep 11b8de2537 init
2025-05-23 07:34:48 +03:00

22 lines
399 B
Docker

FROM node:21.6.1-alpine3.19 AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm i
COPY . .
RUN npm run build
FROM nginxinc/nginx-unprivileged:1.25.3
COPY --from=builder /app/build /usr/share/nginx/html/openapi-ui
COPY deploy/ /
USER root
RUN chmod g+rw -R /run /usr/share/nginx/html \
&& chown root:root /usr/share/nginx/html
USER 1001
CMD ["nginx", "-g", "daemon off;"]