Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -3,14 +3,13 @@ FROM ${BASE} AS base
|
|
3 |
|
4 |
WORKDIR /app
|
5 |
|
6 |
-
#
|
7 |
-
|
8 |
-
RUN corepack enable pnpm
|
9 |
|
10 |
# Change ownership of the /app directory to the node user
|
11 |
RUN chown -R node:node /app
|
12 |
|
13 |
-
# Switch
|
14 |
USER node
|
15 |
|
16 |
# Install dependencies
|
|
|
3 |
|
4 |
WORKDIR /app
|
5 |
|
6 |
+
# Install pnpm (preferred: corepack, fallback: npm)
|
7 |
+
RUN corepack prepare [email protected] --activate || npm install -g [email protected]
|
|
|
8 |
|
9 |
# Change ownership of the /app directory to the node user
|
10 |
RUN chown -R node:node /app
|
11 |
|
12 |
+
# Switch to the node user
|
13 |
USER node
|
14 |
|
15 |
# Install dependencies
|