File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ARG PNPM_VERSION=10.33.0
2-
31FROM node:24-alpine AS build
42
5- ARG PNPM_VERSION
6-
73WORKDIR /build
84
9- COPY ["package.json" , "pnpm-lock.yaml" , "./" ]
5+ COPY ["package.json" , "package-lock.json" , "./" ]
6+ COPY .husky/install.mjs ./.husky/install.mjs
107
11- RUN corepack enable && corepack prepare pnpm@$PNPM_VERSION --activate && pnpm install --frozen-lockfile --silent
8+ RUN npm install --quiet
129
1310COPY . .
1411
15- RUN pnpm build
12+ RUN npm run build
1613
1714FROM node:24-alpine
1815
19- ARG PNPM_VERSION
20-
2116LABEL org.opencontainers.image.title="Nostream"
2217LABEL org.opencontainers.image.source=https://github.com/cameri/nostream
2318LABEL org.opencontainers.image.description="nostream"
@@ -30,11 +25,9 @@ RUN apk add --no-cache --update git
3025ADD resources /app/resources
3126
3227COPY --from=build /build/dist .
33- COPY --from=build /build/package.json /build/pnpm-lock.yaml ./
3428
35- RUN corepack enable && corepack prepare pnpm@$PNPM_VERSION --activate && pnpm install --prod --frozen-lockfile --silent
29+ RUN npm install --omit=dev --quiet
3630
3731USER node:node
3832
3933CMD ["node" , "src/index.js" ]
40-
You can’t perform that action at this time.
0 commit comments