Skip to content

Commit

Permalink
pm i -> npm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
itswadesh committed Nov 19, 2023
1 parent ddf7fa4 commit 7babd68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM node:16 AS builder
LABEL author="Swadesh Behera"

RUN npm install -g pnpm
# RUN npm install -g npm

# Add timezone
RUN apt-get install -yq tzdata && \
Expand All @@ -13,10 +13,10 @@ WORKDIR /usr/app
COPY package.json ./
COPY .npmrc ./
ENV PUPPETEER_SKIP_DOWNLOAD="true"
RUN pnpm ci --force
RUN npm install --force
RUN cp -R node_modules prod_node_modules
COPY . .
RUN pnpm run build
RUN npm run build
##### Stage 2 - Production
FROM builder as production
WORKDIR /usr/app
Expand All @@ -25,4 +25,4 @@ COPY --from=builder /usr/app/package*.json ./
ENV PUPPETEER_SKIP_DOWNLOAD="true"
ENV NODE_ENV=production
COPY --from=builder /usr/app/.svelte-kit ./.svelte-kit
CMD [ "pnpm", "start" ]
CMD [ "npm", "start" ]

1 comment on commit 7babd68

@vercel
Copy link

@vercel vercel bot commented on 7babd68 Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.