From e531dc4007657ecdf2b3f11a88054a5b18fa10a0 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 6 Jun 2020 11:53:42 +0200 Subject: [PATCH] Remove pip3 and dependencies after installing --- Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46f6e41..44c6960 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,18 @@ -FROM python:3.6-alpine +FROM python:3-alpine WORKDIR /usr/src/app -RUN apk update -RUN apk add gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers -RUN pip3 install psutil - -RUN pip3 install malojaserver +RUN apk add --no-cache --virtual .build-deps \ + gcc \ + libxml2-dev \ + libxslt-dev \ + py3-pip \ + libc-dev \ + linux-headers \ + && \ + pip3 install psutil && \ + pip3 install malojaserver && \ + apk del .build-deps EXPOSE 42010