kumudraj01 commited on
Commit
43435fd
·
1 Parent(s): 2d9b352

port update

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. 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 5001
28
 
29
  # Set healthcheck
30
  HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
31
- CMD curl -f http://localhost:5001/ || exit 1
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 = 5001
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)