Skip to content

Commit

Permalink
chore:move install to after pnpm global install
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Ogbonna committed Dec 31, 2024
1 parent 4ee5620 commit 1c9cac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Install dependencies only when needed
FROM node:18-alpine AS deps

# Install build dependencies
RUN pnpm install

# Install global dependencies
RUN npm install -g node-gyp node-gyp-build [email protected]

Expand Down Expand Up @@ -37,6 +34,9 @@ WORKDIR /app

RUN npm install -g [email protected]

# Install build dependencies
RUN pnpm install

# Copy all files
COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand Down

0 comments on commit 1c9cac0

Please sign in to comment.