usmansafdarktk commited on
Commit
c963314
·
1 Parent(s): 14ad9da

Change port to 7860, updated docker and Readme

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -2
  2. README.md +1 -1
Dockerfile CHANGED
@@ -9,6 +9,7 @@ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
9
  # Set environment variables for Hugging Face cache
10
  ENV TRANSFORMERS_CACHE=/app/cache
11
  ENV HF_HOME=/app/cache
 
12
 
13
  # Copy and install requirements
14
  COPY requirements.txt .
@@ -18,7 +19,7 @@ RUN pip install --no-cache-dir -r requirements.txt
18
  COPY . .
19
 
20
  # Expose port
21
- EXPOSE 8000
22
 
23
  # Run the FastAPI application
24
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
9
  # Set environment variables for Hugging Face cache
10
  ENV TRANSFORMERS_CACHE=/app/cache
11
  ENV HF_HOME=/app/cache
12
+ ENV PORT=7860
13
 
14
  # Copy and install requirements
15
  COPY requirements.txt .
 
19
  COPY . .
20
 
21
  # Expose port
22
+ EXPOSE 7860
23
 
24
  # Run the FastAPI application
25
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -26,7 +26,7 @@ pip install -r requirements.txt
26
 
27
  Run the API locally:
28
  ```bash
29
- uvicorn main:app --host 0.0.0.0 --port 8000
30
  ```
31
 
32
 
 
26
 
27
  Run the API locally:
28
  ```bash
29
+ uvicorn main:app --host 0.0.0.0 --port 7860
30
  ```
31
 
32