Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -23,11 +23,11 @@ WORKDIR /home/suhail
|
|
| 23 |
# Grant full permissions to the directory (this step should help if there are permission issues)
|
| 24 |
RUN chmod -R 777 /home/suhail
|
| 25 |
|
| 26 |
-
USER node
|
| 27 |
-
|
| 28 |
# Change ownership of the directory to the 'node' user
|
| 29 |
RUN chown -R node:node /home/suhail
|
| 30 |
|
|
|
|
|
|
|
| 31 |
# Copy the server.js file into the working directory
|
| 32 |
COPY server.js .
|
| 33 |
|
|
|
|
| 23 |
# Grant full permissions to the directory (this step should help if there are permission issues)
|
| 24 |
RUN chmod -R 777 /home/suhail
|
| 25 |
|
|
|
|
|
|
|
| 26 |
# Change ownership of the directory to the 'node' user
|
| 27 |
RUN chown -R node:node /home/suhail
|
| 28 |
|
| 29 |
+
USER node
|
| 30 |
+
|
| 31 |
# Copy the server.js file into the working directory
|
| 32 |
COPY server.js .
|
| 33 |
|