Skip to content

Commit 4ff32f3

Browse files
author
Andreas de Pretis
committed
Install python libraries for MySQL and PostgreSQL
1 parent 2277f7a commit 4ff32f3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ RUN set -ex \
1717
libxml2-dev \
1818
libxslt-dev \
1919
curl-dev \
20+
&& pip install \
21+
PyMySQL \
2022
&& python setup.py install --prefix=/usr/local \
23+
&& rm -rf /usr/local/src/{*,.*??} \
2124
&& find /usr/local -depth \
2225
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
2326
-exec rm -rf '{}' + \
@@ -28,9 +31,10 @@ RUN set -ex \
2831
| xargs -r apk info --installed \
2932
| sort -u \
3033
)" \
31-
&& apk add --virtual .pypi-server-rundeps $runDeps \
32-
&& apk del .build-deps \
33-
&& rm -rf ~/.cache
34+
&& apk add --no-cache --virtual .pypi-server-rundeps \
35+
$runDeps \
36+
py-psycopg2 \
37+
&& apk del .build-deps
3438

3539
VOLUME "/usr/lib/pypi-server"
3640

0 commit comments

Comments
 (0)