Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace psycopg2-binary with psycopg2 #1217

Merged
merged 3 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extras/docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN apt-get update \
python3-pip \
sqlite3 \
wget \
libpq5 \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g yarn sass\
&& locale-gen en_US.UTF-8
Expand Down
5 changes: 3 additions & 2 deletions extras/docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ RUN apt-get update \
python3-dev \
python3-pip \
python3-wheel \
git
git \
libpq-dev

# Build the necessary python wheels
COPY requirements* ./
RUN pip3 wheel --no-cache-dir --wheel-dir /wheels -r requirements_prod.txt
RUN pip3 wheel --no-cache-dir --wheel-dir /wheels -r requirements_docker.txt



Expand Down
11 changes: 11 additions & 0 deletions requirements_docker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# Requirements for wger for production
#

# Regular packages
-r requirements.txt

gunicorn~=20.1
psycopg2==2.9.5
django-redis==5.2.0