From 1abe9618697999525e5780252d4ec64838921cbb Mon Sep 17 00:00:00 2001 From: syassami Date: Fri, 21 Apr 2017 11:15:52 -0700 Subject: [PATCH] Lighten up the python3 base image (alpine) (#171) Saves 241 MB from the base example image, bringing things down to 242MB in total. --- environments/python3/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/environments/python3/Dockerfile b/environments/python3/Dockerfile index 2d85ebcc..483c9156 100644 --- a/environments/python3/Dockerfile +++ b/environments/python3/Dockerfile @@ -1,8 +1,9 @@ -FROM ubuntu:16.04 +FROM alpine:3.5 -RUN apt-get update -y -RUN apt-get install -y python3 python3-pip python3-dev build-essential +RUN apk update +RUN apk add --no-cache python3 python3-dev build-base RUN pip3 install --upgrade pip +RUN rm -r /root/.cache COPY . /app WORKDIR /app