Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit 1aea12c

Browse files
committed
Slim the docker image
1 parent 19c950b commit 1aea12c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
ARG PYTHON_VERSION
2-
FROM python:${PYTHON_VERSION}
2+
FROM python:${PYTHON_VERSION}-slim
33

44
RUN apt-get update \
55
&& apt-get install -y libmemcached-dev \
66
build-essential \
77
libsqlite3-mod-spatialite binutils libproj-dev gdal-bin libgdal20 libgeoip1 \
8-
mysql-client \
8+
mysql-client default-libmysqlclient-dev \
99
unzip libaio1 \
1010
libenchant1c2a \
1111
gettext \
12+
wget \
1213
&& apt-get clean
1314

1415
RUN groupadd -r test && useradd --no-log-init -r -g test test
@@ -25,6 +26,7 @@ RUN wget -q https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-
2526
&& chmod a+x /bin/wait-for-it.sh
2627

2728
ENV PIP_NO_CACHE_DIR=off
29+
ENV PYTHONDONTWRITEBYTECODE=1
2830
RUN pip install --upgrade pip
2931

3032
COPY --chown=test:test tests/requirements/ /requirements/

0 commit comments

Comments
 (0)