13 lines
411 B
Docker
13 lines
411 B
Docker
FROM node:23.10.0-alpine3.21 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 npm i -g pnpm@10.7
|
|
RUN pnpm i --frozen-lockfile
|
|
RUN pnpm build
|
|
|
|
# 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 |