Skip to content

Commit

Permalink
Simplify Python dependency installation
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristensen committed Jun 12, 2023
1 parent 46097a0 commit 429111a
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 22 deletions.
11 changes: 3 additions & 8 deletions birdcage_backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ FROM python:3.10
# Install system dependencies
RUN apt-get update && apt-get install -y ffmpeg pulseaudio

COPY requirements.txt /
# Install Python packages from requirements.txt
RUN pip install -r requirements.txt

# Install Gunicorn
RUN pip install gunicorn
COPY requirements.txt /tmp

# Install youtube-dl
RUN pip install "git+https://github.com/ytdl-org/youtube-dl.git"
# Install Python packages from requirements.txt
RUN pip install -r /tmp/requirements.txt

# Copy files into the container
COPY run.py start_app.sh config.py celery_worker.py /
Expand Down
73 changes: 64 additions & 9 deletions birdcage_backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,70 @@
Flask-Cors==3.0.10
Flask-JWT-Extended==4.4.4
Flask==2.3.2
Jinja2==3.1.2
Markdown==3.4.3
MarkupSafe==2.1.3
Pillow==9.5.0
PyJWT==2.7.0
PyYAML==6.0
Werkzeug==2.3.6
amqp==5.1.1
appdirs==1.4.4
apprise==1.4.0
async-timeout==4.0.2
audioread==3.0.0
bcrypt==4.0.1
billiard==3.6.4.0
blinker==1.6.2
celery==5.2.7
redis==4.5.5
ffmpeg_python==0.2.0
Flask==2.3.2
Flask_Cors==3.0.10
flask_swagger_ui==4.11.1
certifi==2023.5.7
cffi==1.15.1
charset-normalizer==3.1.0
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
click==8.1.3
contourpy==1.0.7
cycler==0.11.0
decorator==5.1.1
ffmpeg-python==0.2.0
flask-swagger-ui==4.11.1
fonttools==4.40.0
future==0.18.3
gunicorn==20.1.0
idna==3.4
itsdangerous==2.1.2
joblib==1.2.0
kiwisolver==1.4.4
kombu==5.3.0
lazy_loader==0.2
librosa==0.10.0.post2
llvmlite==0.40.1rc1
matplotlib==3.6.3
msgpack==1.0.5
numba==0.57.0
numpy==1.24.3
oauthlib==3.2.2
packaging==23.1
paho-mqtt==1.6.1
pooch==1.6.0
prompt-toolkit==3.0.38
pycparser==2.21
pydub==0.25.1
Requests==2.30.0
bcrypt==4.0.1
Flask-JWT-Extended==4.4.4
paho-mqtt==1.6.1
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2023.3
redis==4.5.5
requests-oauthlib==1.3.1
requests==2.30.0
scikit-learn==1.2.2
scipy==1.10.1
six==1.16.0
soundfile==0.12.1
soxr==0.3.5
threadpoolctl==3.1.0
typing_extensions==4.6.3
urllib3==2.0.3
vine==5.0.0
wcwidth==0.2.6
youtube-dl @ git+https://github.com/ytdl-org/youtube-dl.git
8 changes: 3 additions & 5 deletions birdcage_frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Use the official Python 3.10 image as the base image
FROM python:3.10

COPY requirements.txt /
# Install Python packages from requirements.txt
RUN pip install -r requirements.txt
COPY requirements.txt /tmp

# Install Gunicorn
RUN pip install gunicorn
# Install Python packages from requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY start_app.sh /
COPY webui.py /
Expand Down
13 changes: 13 additions & 0 deletions birdcage_frontend/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Flask==2.3.2
Jinja2==3.1.2
MarkupSafe==2.1.3
Werkzeug==2.3.6
blinker==1.6.2
certifi==2023.5.7
charset-normalizer==3.1.0
click==8.1.3
gunicorn==20.1.0
idna==3.4
itsdangerous==2.1.2
requests==2.30.0
urllib3==2.0.3

0 comments on commit 429111a

Please sign in to comment.