Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -13,8 +13,11 @@ RUN npm install --production
|
|
| 13 |
# Copy the rest of the application code to the container
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
|
|
|
| 17 |
EXPOSE 3000
|
| 18 |
|
| 19 |
-
#
|
| 20 |
CMD ["npm", "start"]
|
|
|
|
| 13 |
# Copy the rest of the application code to the container
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
# Set environment variable to production
|
| 17 |
+
ENV NODE_ENV=production
|
| 18 |
+
|
| 19 |
+
# Expose the port Hugging Face uses
|
| 20 |
EXPOSE 3000
|
| 21 |
|
| 22 |
+
# Start the app using the port Hugging Face will bind to
|
| 23 |
CMD ["npm", "start"]
|