jkdwhdvkjdbhvjfvh commited on
Commit
d0db622
·
verified ·
1 Parent(s): f795d72

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -3
Dockerfile CHANGED
@@ -1,14 +1,20 @@
1
 
2
  FROM python:3.10-slim
3
 
 
4
  RUN apt-get update && apt-get install -y ffmpeg
5
 
 
6
  WORKDIR /app
7
 
8
- COPY . .
 
 
9
 
 
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- EXPOSE 7860
 
 
13
 
14
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
 
2
  FROM python:3.10-slim
3
 
4
+ # Install FFmpeg
5
  RUN apt-get update && apt-get install -y ffmpeg
6
 
7
+ # Set working directory
8
  WORKDIR /app
9
 
10
+ # Copy files
11
+ COPY requirements.txt .
12
+ COPY bot.py .
13
 
14
+ # Install Python dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Run the bot
18
+ CMD ["python", "bot.py"]
19
+
20