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

Slim the docker image #24

Merged
merged 1 commit into from
Dec 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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