Spaces:
Sleeping
Sleeping
Commit ·
43435fd
1
Parent(s): 2d9b352
port update
Browse files- Dockerfile +3 -3
- run.py +1 -1
Dockerfile
CHANGED
|
@@ -24,11 +24,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 24 |
COPY . .
|
| 25 |
|
| 26 |
# Expose the port
|
| 27 |
-
EXPOSE
|
| 28 |
|
| 29 |
# Set healthcheck
|
| 30 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
| 31 |
-
CMD curl -f http://localhost:
|
| 32 |
|
| 33 |
# Run the application
|
| 34 |
-
CMD ["python", "run.py"]
|
|
|
|
| 24 |
COPY . .
|
| 25 |
|
| 26 |
# Expose the port
|
| 27 |
+
EXPOSE 7860
|
| 28 |
|
| 29 |
# Set healthcheck
|
| 30 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
| 31 |
+
CMD curl -f http://localhost:7860/ || exit 1
|
| 32 |
|
| 33 |
# Run the application
|
| 34 |
+
CMD ["python", "run.py"]
|
run.py
CHANGED
|
@@ -12,7 +12,7 @@ log = structlog.get_logger()
|
|
| 12 |
|
| 13 |
# Constants for server configuration
|
| 14 |
HOST = "0.0.0.0"
|
| 15 |
-
PORT =
|
| 16 |
|
| 17 |
if __name__ == "__main__":
|
| 18 |
log.info("Starting API Comparator service, Host:%s, Port:%d", HOST, PORT)
|
|
|
|
| 12 |
|
| 13 |
# Constants for server configuration
|
| 14 |
HOST = "0.0.0.0"
|
| 15 |
+
PORT = 7860
|
| 16 |
|
| 17 |
if __name__ == "__main__":
|
| 18 |
log.info("Starting API Comparator service, Host:%s, Port:%d", HOST, PORT)
|