T1ckbase commited on
Commit
db99ef4
·
1 Parent(s): e1b1d0a

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -1,12 +1,6 @@
1
  ARG BASE=node:20.18.0
2
  FROM ${BASE} AS base
3
 
4
- ENV PNPM_HOME="/pnpm"
5
-
6
- ENV PATH="$PNPM_HOME:$PATH"
7
-
8
- RUN corepack enable
9
-
10
  WORKDIR /app
11
 
12
  # Install dependencies (this step is cached as long as the dependencies don't change)
@@ -15,7 +9,7 @@ COPY package.json pnpm-lock.yaml ./
15
  #RUN npm install -g corepack@latest
16
 
17
  #RUN corepack enable pnpm && pnpm install
18
- RUN pnpm install
19
 
20
  # Copy the rest of your app's source code
21
  COPY . .
 
1
  ARG BASE=node:20.18.0
2
  FROM ${BASE} AS base
3
 
 
 
 
 
 
 
4
  WORKDIR /app
5
 
6
  # Install dependencies (this step is cached as long as the dependencies don't change)
 
9
  #RUN npm install -g corepack@latest
10
 
11
  #RUN corepack enable pnpm && pnpm install
12
+ RUN npm install -g pnpm && pnpm install
13
 
14
  # Copy the rest of your app's source code
15
  COPY . .