Skip to content

Commit 7babd68

Browse files
committed
pm i -> npm ci
1 parent ddf7fa4 commit 7babd68

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM node:16 AS builder
33
LABEL author="Swadesh Behera"
44

5-
RUN npm install -g pnpm
5+
# RUN npm install -g npm
66

77
# Add timezone
88
RUN apt-get install -yq tzdata && \
@@ -13,10 +13,10 @@ WORKDIR /usr/app
1313
COPY package.json ./
1414
COPY .npmrc ./
1515
ENV PUPPETEER_SKIP_DOWNLOAD="true"
16-
RUN pnpm ci --force
16+
RUN npm install --force
1717
RUN cp -R node_modules prod_node_modules
1818
COPY . .
19-
RUN pnpm run build
19+
RUN npm run build
2020
##### Stage 2 - Production
2121
FROM builder as production
2222
WORKDIR /usr/app
@@ -25,4 +25,4 @@ COPY --from=builder /usr/app/package*.json ./
2525
ENV PUPPETEER_SKIP_DOWNLOAD="true"
2626
ENV NODE_ENV=production
2727
COPY --from=builder /usr/app/.svelte-kit ./.svelte-kit
28-
CMD [ "pnpm", "start" ]
28+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)