selfservice/Dockerfile
Philipp Dormann 4a11fef0e0
All checks were successful
ci/woodpecker/push/build Pipeline was successful
chore(deps): update all
2024-12-02 10:40:06 +01:00

12 lines
418 B
Docker

FROM registry.odit.services/hub/library/node:19.5.0-alpine3.17 AS build
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
WORKDIR /app
COPY . .
RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@9
RUN pnpm i && pnpm build && pnpm postbuild
# final image
FROM registry.odit.services/library/nginx-brotli:3.15 AS final
COPY --from=build /app/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf