Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -7,7 +7,8 @@ WORKDIR /usr/src/app
|
|
| 7 |
# Copy package.json and package-lock.json
|
| 8 |
COPY package*.json ./
|
| 9 |
|
| 10 |
-
#
|
|
|
|
| 11 |
RUN npm install
|
| 12 |
|
| 13 |
# Copy the rest of the application code
|
|
@@ -17,4 +18,4 @@ COPY . .
|
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
# Define the command to run the app
|
| 20 |
-
CMD ["node", "app.js"]
|
|
|
|
| 7 |
# Copy package.json and package-lock.json
|
| 8 |
COPY package*.json ./
|
| 9 |
|
| 10 |
+
# Clear npm cache and install dependencies
|
| 11 |
+
RUN npm cache clean --force
|
| 12 |
RUN npm install
|
| 13 |
|
| 14 |
# Copy the rest of the application code
|
|
|
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
# Define the command to run the app
|
| 21 |
+
CMD ["node", "app.js"]
|