From ae0607f907a37ad525f075a907aac5921a2125a8 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 9 Aug 2016 17:11:33 +0200 Subject: [PATCH] Switch to alpine image to reduce size --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f4fe3e..84e216a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM python:2.7-onbuild +FROM python:2.7-alpine + +COPY requirements.txt /tmp/ RUN set -ex \ - && apt-get update \ - && apt-get install -y groff \ - && apt-get autoremove -y + && pip install --no-cache-dir -r /tmp/requirements.txt \ + && rm /tmp/requirements.txt \ + && apk --update add groff less VOLUME ["/root/.aws"]