Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -17,14 +17,14 @@ COPY . .
|
|
| 17 |
# Build the application
|
| 18 |
RUN pnpm build
|
| 19 |
|
| 20 |
-
# Set environment
|
| 21 |
ENV NODE_ENV=production
|
| 22 |
-
ENV PORT=3000
|
| 23 |
|
| 24 |
-
# Expose port
|
| 25 |
-
EXPOSE
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
# Start the application
|
| 28 |
-
CMD ["pnpm", "start"]
|
| 29 |
|
| 30 |
|
|
|
|
| 17 |
# Build the application
|
| 18 |
RUN pnpm build
|
| 19 |
|
| 20 |
+
# Set environment
|
| 21 |
ENV NODE_ENV=production
|
|
|
|
| 22 |
|
| 23 |
+
# Expose port - Hugging Face uses 7860 by default
|
| 24 |
+
EXPOSE 7860
|
| 25 |
+
|
| 26 |
+
# Start the application on port 7860
|
| 27 |
+
CMD ["node", "dist/index.js"]
|
| 28 |
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|