Skip to content

Commit

Permalink
Fix for postgres dep that isn't needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmusser01 committed Oct 22, 2024
1 parent 978d4ec commit 8dd0185
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN apt-get update && apt-get install -y \
portaudio19-dev \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
# libpq-dev is needed for psycopg2 - which is needed for Postgres

# Set the working directory in the container
WORKDIR /tldw
Expand Down
8 changes: 5 additions & 3 deletions Helper_Scripts/Dockerfiles/tldw-nvidia_amd64_Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Usage
# docker build -t tldw-nvidia_amd64_Dockerfile .
# docker run --gpus=all -p 7860:7860 -v tldw_volume:/tldw tldw-nvidia_amd64_Dockerfile
# docker build -t tldw-nvidia_amd64 .
# docker run --gpus=all -p 7860:7860 -v tldw_volume:/tldw tldw-nvidia_amd64
#
# If the above command doesn't work and it hangs on start, use the following command:
#
# sudo docker run -it -p 7860:7860 -v tldw_volume:/tdlw nvidia_tldw bash
# sudo docker run -it -p 7860:7860 -v tldw_volume:/tdlw tldw-nvidia_amd64 bash
#
# Once in the container, run the following command:
#
Expand All @@ -31,12 +31,14 @@ RUN apt-get update && apt-get install -y \
build-essential \
git \
python3 \
python3-dev \
python3-pyaudio \
portaudio19-dev \
python3-pip \
portaudio19-dev \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
# libpq-dev is needed for psycopg2 - which is needed for Postgres

# Set the working directory in the container
WORKDIR /tldw
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ openai
pandas
Pillow
playwright
psycopg2
psycopg2-binary
# I'm not using postgres yet...
#psycopg2
#psycopg2-binary
psutil
#psycopg2-binary
pyannote.audio
Expand Down

0 comments on commit 8dd0185

Please sign in to comment.