yolloo commited on
Commit
c3adfe1
·
verified ·
1 Parent(s): 3c03f04

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -30
Dockerfile DELETED
@@ -1,30 +0,0 @@
1
- # Use a slim Python base image
2
- FROM python:3.9-slim
3
-
4
- # Set the working directory
5
- WORKDIR /code
6
-
7
- # Prevent Python from writing pyc files
8
- ENV PYTHONDONTWRITEBYTECODE 1
9
- # Ensure Python output is sent straight to the terminal
10
- ENV PYTHONUNBUFFERED 1
11
-
12
- # Set a cache home directory for Hugging Face models
13
- ENV XDG_CACHE_HOME=/tmp/.cache
14
-
15
- # Install ffmpeg, a required dependency for Whisper to process audio
16
- RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
17
-
18
- # Copy the requirements file and install Python dependencies
19
- COPY requirements.txt .
20
- RUN pip install --no-cache-dir --upgrade pip && \
21
- pip install --no-cache-dir -r requirements.txt
22
-
23
- # Copy the rest of the application code
24
- COPY . .
25
-
26
- # Expose the port the app runs on
27
- EXPOSE 7860
28
-
29
- # Run the application using gunicorn for production
30
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]