loko99 commited on
Commit
eba235b
·
verified ·
1 Parent(s): 242a380

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -5
Dockerfile CHANGED
@@ -1,21 +1,18 @@
1
  FROM python:3.10-slim
2
 
3
- RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf && \
4
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
5
-
6
  WORKDIR /app
7
 
8
  # Install system dependencies (git for cloning, ffmpeg for audio)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  git \
11
  ffmpeg \
 
12
  && rm -rf /var/lib/apt/lists/* \
13
  && apt-get clean
14
 
15
  # Clone the repo
16
  RUN git clone https://github.com/Ranjan-Shettigar/YTAV.git /app
17
 
18
-
19
  # Install dependencies
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
@@ -23,4 +20,4 @@ RUN pip install --no-cache-dir -r requirements.txt
23
  EXPOSE 5000
24
 
25
  # Run the app with Uvicorn
26
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]
 
1
  FROM python:3.10-slim
2
 
 
 
 
3
  WORKDIR /app
4
 
5
  # Install system dependencies (git for cloning, ffmpeg for audio)
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  git \
8
  ffmpeg \
9
+ ca-certificates \
10
  && rm -rf /var/lib/apt/lists/* \
11
  && apt-get clean
12
 
13
  # Clone the repo
14
  RUN git clone https://github.com/Ranjan-Shettigar/YTAV.git /app
15
 
 
16
  # Install dependencies
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
20
  EXPOSE 5000
21
 
22
  # Run the app with Uvicorn
23
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]