This commit is contained in:
Christian Weber 2018-06-11 15:01:43 +00:00 committed by GitHub
commit 26fb2d922f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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