Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM node:lts-buster
|
|
| 3 |
|
| 4 |
|
| 5 |
# Set the working directory in the container
|
| 6 |
-
WORKDIR /app
|
| 7 |
|
| 8 |
# Copy package.json and package-lock.json (or yarn.lock if using yarn)
|
| 9 |
COPY package*.json ./
|
|
@@ -15,7 +15,7 @@ RUN npm install || yarn install
|
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
# Change ownership of the application files to the 'node' user
|
| 18 |
-
RUN chown -R node:node /app
|
| 19 |
|
| 20 |
# Switch to the 'node' user for security reasons
|
| 21 |
USER node
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
# Set the working directory in the container
|
| 6 |
+
WORKDIR /app
|
| 7 |
|
| 8 |
# Copy package.json and package-lock.json (or yarn.lock if using yarn)
|
| 9 |
COPY package*.json ./
|
|
|
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
# Change ownership of the application files to the 'node' user
|
| 18 |
+
RUN chown -R node:node /app
|
| 19 |
|
| 20 |
# Switch to the 'node' user for security reasons
|
| 21 |
USER node
|