adrienbrdne commited on
Commit
65261af
·
verified ·
1 Parent(s): fcf819f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -18,7 +18,7 @@ COPY requirements.txt .
18
  # Install dependencies
19
  # --no-cache-dir reduces image size
20
  # --default-timeout=100 increases timeout for pip install
21
- RUN pip install --no-cache-dir --default-timeout=100 -r requirements.txt
22
 
23
 
24
  COPY .env .
@@ -28,14 +28,12 @@ COPY .env .
28
  COPY api.py .
29
  COPY ./kig_core ./kig_core
30
 
31
- # Expose the port the API runs on (defined in api.py/uvicorn command)
32
- EXPOSE 8000
33
 
34
  # Command to run the Uvicorn server
35
  # It will look for an object named 'app' in the 'api.py' file
36
  # Runs on port 8000 and listens on all interfaces (0.0.0.0)
37
  # Note: For production, consider removing --reload
38
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
39
 
40
  # --- Notes ---
41
  # Environment Variables:
 
18
  # Install dependencies
19
  # --no-cache-dir reduces image size
20
  # --default-timeout=100 increases timeout for pip install
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
 
23
 
24
  COPY .env .
 
28
  COPY api.py .
29
  COPY ./kig_core ./kig_core
30
 
 
 
31
 
32
  # Command to run the Uvicorn server
33
  # It will look for an object named 'app' in the 'api.py' file
34
  # Runs on port 8000 and listens on all interfaces (0.0.0.0)
35
  # Note: For production, consider removing --reload
36
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
37
 
38
  # --- Notes ---
39
  # Environment Variables: