From b71bd2763fe7caa2a3647d2e78142af14371798e Mon Sep 17 00:00:00 2001 From: Matt Covalt Date: Tue, 24 Mar 2020 12:59:42 -0400 Subject: [PATCH] [devfix] Simplify PostgreSQL install --- Dockerfile | 3 ++- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 010eee8..8d853d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM python:3.8-buster COPY requirements.txt /requirements.txt -RUN pip --no-cache-dir install -r /requirements.txt \ +RUN sed -i 's/psycopg2-binary/psycopg2/g' requirements.txt \ + && pip --no-cache-dir install -r /requirements.txt \ && rm /requirements.txt COPY . /app/. diff --git a/requirements.txt b/requirements.txt index 5f68504..9acdfae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ djangorestframework==3.11.0 # https://github.com/encode/django-rest-framework epam.indigo==1.4.0b0 # https://github.com/epam/Indigo gunicorn[gevent,setproctitle]==20.0.4 # https://github.com/benoitc/gunicorn psycogreen==1.0.2 # https://github.com/psycopg/psycogreen/ -psycopg2==2.8.4 # https://github.com/psycopg/psycopg2 +psycopg2-binary==2.8.4 # https://github.com/psycopg/psycopg2 redis==3.4.1 # https://github.com/antirez/redis whitenoise==5.0.1 # https://github.com/evansd/whitenoise