-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:move install to after pnpm global install
- Loading branch information
1 parent
4ee5620
commit 1c9cac0
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
||
|
@@ -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 . . | ||
|