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

Commit

Permalink
Merge pull request #24 from orf/slim
Browse files Browse the repository at this point in the history
Slim the docker image
  • Loading branch information
orf authored Dec 5, 2018
2 parents 19c950b + 96a4742 commit 73c1640
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
ARG PYTHON_VERSION
FROM python:${PYTHON_VERSION}
FROM python:${PYTHON_VERSION}-slim

RUN apt-get update \
&& apt-get install -y libmemcached-dev \
build-essential \
libsqlite3-mod-spatialite binutils libproj-dev gdal-bin libgdal20 libgeoip1 \
mysql-client \
default-libmysqlclient-dev \
unzip libaio1 \
libenchant1c2a \
gettext \
wget \
&& apt-get clean

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

ENV PIP_NO_CACHE_DIR=off
ENV PYTHONDONTWRITEBYTECODE=1
RUN pip install --upgrade pip

COPY --chown=test:test tests/requirements/ /requirements/
Expand Down

0 comments on commit 73c1640

Please sign in to comment.