Add apk update and postgres-dev to dockerfile
This commit is contained in:
parent
a7dac64395
commit
27ce527c60
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue