Add apk update and postgres-dev to dockerfile

This commit is contained in:
Christian Weber 2018-06-11 09:58:07 -05:00
parent a7dac64395
commit 27ce527c60
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,11 @@ RUN adduser -D microblog
WORKDIR /home/microblog
COPY requirements.txt requirements.txt
RUN apk update \
&& apk add libpq postgresql-dev \
&& apk add build-base
RUN python -m venv venv
RUN venv/bin/pip install -r requirements.txt
RUN venv/bin/pip install gunicorn pymysql