T1ckbase
commited on
Commit
·
e1b1d0a
1
Parent(s):
faa8d36
update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 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,7 +15,7 @@ COPY package.json pnpm-lock.yaml ./
|
|
| 9 |
#RUN npm install -g corepack@latest
|
| 10 |
|
| 11 |
#RUN corepack enable pnpm && pnpm install
|
| 12 |
-
RUN
|
| 13 |
|
| 14 |
# Copy the rest of your app's source code
|
| 15 |
COPY . .
|
|
|
|
| 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 |
#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 . .
|