From 17bb1ac39fd5f1ef548ddbcd08f95b8ce1bd15d1 Mon Sep 17 00:00:00 2001 From: Pooja Dhoot <58810819+agiwalpooja20@users.noreply.github.com> Date: Fri, 5 Jun 2020 16:03:46 +0530 Subject: [PATCH] Python env changes for pip3 (#1633) Co-authored-by: agiwalpooja20 --- environments/python/Dockerfile | 4 +++- environments/python/builder/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/environments/python/Dockerfile b/environments/python/Dockerfile index b2c0722e..c7b6d4e2 100644 --- a/environments/python/Dockerfile +++ b/environments/python/Dockerfile @@ -2,7 +2,9 @@ FROM alpine WORKDIR /app -RUN apk add --no-cache python3 python3-dev build-base libev-dev libffi-dev && \ +RUN apk add --update gcc && \ + apk upgrade --no-cache && \ + apk add --no-cache python3 python3-dev build-base libev-dev libffi-dev bash py-pip && \ pip3 install --upgrade pip && \ rm -r /root/.cache diff --git a/environments/python/builder/Dockerfile b/environments/python/builder/Dockerfile index 41d18221..baa7d842 100644 --- a/environments/python/builder/Dockerfile +++ b/environments/python/builder/Dockerfile @@ -2,7 +2,7 @@ ARG BUILDER_IMAGE=fission/builder:latest FROM ${BUILDER_IMAGE} RUN apk update -RUN apk add --no-cache python3 python3-dev build-base +RUN apk add --no-cache python3 python3-dev build-base gcc bash py-pip RUN pip3 install --upgrade pip RUN rm -r /root/.cache