Akane710 commited on
Commit
15d850d
·
verified ·
1 Parent(s): 0b0ddc2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -11
Dockerfile CHANGED
@@ -4,15 +4,15 @@ FROM python:${PYTHON_VERSION}-slim AS base
4
  # Install system dependencies
5
  RUN apt-get update && \
6
  apt-get install -y \
7
- pipenv \
8
- fontconfig \
9
- fonts-dejavu \
10
- fonts-dejavu-core \
11
- fonts-dejavu-extra \
12
- fonts-liberation \
13
- fonts-noto \
14
- git \
15
- ffmpeg && \ # Install ffmpeg
16
  rm -rf /var/lib/apt/lists/*
17
 
18
  # Set environment variables
@@ -29,8 +29,8 @@ COPY . .
29
  EXPOSE 7860
30
 
31
  # Install Python dependencies
32
- RUN pipenv install --dev --ignore-pipfile
33
- RUN pipenv run pip install cloudinary uvicorn fastapi git+http://github.com/Simatwa/ytube-api ffmpeg-python
34
 
35
  # Run the application
36
  CMD [ "pipenv", "run", "python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "8", "--timeout-keep-alive", "600" ]
 
4
  # Install system dependencies
5
  RUN apt-get update && \
6
  apt-get install -y \
7
+ pipenv \
8
+ fontconfig \
9
+ fonts-dejavu \
10
+ fonts-dejavu-core \
11
+ fonts-dejavu-extra \
12
+ fonts-liberation \
13
+ fonts-noto \
14
+ git \
15
+ ffmpeg && \ # Install ffmpeg
16
  rm -rf /var/lib/apt/lists/*
17
 
18
  # Set environment variables
 
29
  EXPOSE 7860
30
 
31
  # Install Python dependencies
32
+ RUN pipenv install --dev --ignore-pipfile && \
33
+ pipenv run pip install cloudinary uvicorn fastapi git+http://github.com/Simatwa/ytube-api ffmpeg-python
34
 
35
  # Run the application
36
  CMD [ "pipenv", "run", "python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "8", "--timeout-keep-alive", "600" ]