mirror of
https://github.com/outbackdingo/openapi-ui.git
synced 2026-01-27 18:19:50 +00:00
22 lines
399 B
Docker
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;"]
|