sk16er commited on
Commit
fd07a18
·
verified ·
1 Parent(s): b08ad3d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -25
Dockerfile CHANGED
@@ -1,25 +1,25 @@
1
- # Use an official Python base image
2
- FROM python:3.10-slim
3
-
4
- # Install FFmpeg (required by Whisper)
5
- RUN apt-get update && \
6
- apt-get install -y ffmpeg && \
7
- apt-get clean
8
-
9
- # Set working directory
10
- WORKDIR /app
11
-
12
- # Copy code
13
- COPY ./app /app
14
-
15
- # Install dependencies
16
- RUN pip install --no-cache-dir -r requirements.txt
17
-
18
- # Download NLTK tokenizer
19
- RUN python -m nltk.downloader punkt
20
-
21
- # Expose port
22
- EXPOSE 7860
23
-
24
- # Run the FastAPI app using uvicorn
25
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Use an official Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install FFmpeg (required by Whisper)
5
+ RUN apt-get update && \
6
+ apt-get install -y ffmpeg && \
7
+ apt-get clean
8
+
9
+ # Set working directory
10
+ WORKDIR /app
11
+
12
+ # Copy code
13
+ COPY ./app /app
14
+
15
+ # Install dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Download NLTK tokenizer
19
+ RUN python -m nltk.downloader punkt
20
+
21
+ # Expose port
22
+ EXPOSE 8000
23
+
24
+ # Run the FastAPI app using uvicorn
25
+ CMD ["uvicorn", "main:app", "--host", "http://127.0.0.1:8000/static/index.html", "--port", "8000"]