File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,19 @@ COPY "./app/requirements.txt" "./app/"
7
7
COPY "./config.py" "./"
8
8
COPY "./tasks" "./tasks"
9
9
10
+ ARG INCLUDE_POSTGRESQL=false
10
11
ARG INCLUDE_UWSGI=false
11
12
RUN apk add --no-cache --virtual=.build_dependencies musl-dev gcc python3-dev libffi-dev linux-headers && \
12
13
cd /opt/www && \
13
14
pip install -r tasks/requirements.txt && \
14
15
invoke app.dependencies.install && \
16
+ ( \
17
+ if [ "$INCLUDE_POSTGRESQL" = 'true' ]; then \
18
+ apk add --no-cache libpq && \
19
+ apk add --no-cache --virtual=.build_dependencies postgresql-dev && \
20
+ pip install psycopg2 ; \
21
+ fi \
22
+ ) && \
15
23
( if [ "$INCLUDE_UWSGI" = 'true' ]; then pip install uwsgi ; fi ) && \
16
24
rm -rf ~/.cache/pip && \
17
25
apk del .build_dependencies
You can’t perform that action at this time.
0 commit comments