Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -11,7 +11,12 @@ WORKDIR /code
|
|
11 |
|
12 |
# Copy package.json and install dependencies
|
13 |
COPY package*.json ./
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
RUN npm install
|
17 |
|
|
|
11 |
|
12 |
# Copy package.json and install dependencies
|
13 |
COPY package*.json ./
|
14 |
+
|
15 |
+
# Change ownership of the files to allow npm install
|
16 |
+
RUN chown -R node:node /code
|
17 |
+
|
18 |
+
# Switch to the node user
|
19 |
+
USER node
|
20 |
|
21 |
RUN npm install
|
22 |
|