Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -9,11 +9,7 @@ COPY package.json ./
|
|
| 9 |
COPY server.js ./
|
| 10 |
|
| 11 |
# Expose the port
|
| 12 |
-
EXPOSE
|
| 13 |
-
|
| 14 |
-
# Health check
|
| 15 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
| 16 |
-
CMD node -e "require('http').get('http://localhost:7860/health', (res) => process.exit(res.statusCode === 200 ? 0 : 1))"
|
| 17 |
|
| 18 |
# Run the server
|
| 19 |
CMD ["node", "server.js"]
|
|
|
|
| 9 |
COPY server.js ./
|
| 10 |
|
| 11 |
# Expose the port
|
| 12 |
+
EXPOSE 7000
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Run the server
|
| 15 |
CMD ["node", "server.js"]
|