From 8232a6b035b3a27f405f840e625bf88abaa17437 Mon Sep 17 00:00:00 2001 From: Harm Weites Date: Wed, 10 Jun 2020 13:36:39 +0200 Subject: [PATCH] Add in bash and symlink /usr/bin/python Pip3 doesn't need to be symlinked as the creation of /usr/bin/pip is done through installation of setuptools (or the pip upgrade). --- app/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Dockerfile b/app/Dockerfile index 9709fae6..9af1b4fc 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -9,8 +9,9 @@ ENV PYTHONUNBUFFERED 1 COPY . /app/ -RUN apk add -U python3 python3-dev libpq postgresql-dev unixodbc-dev musl-dev g++ libffi-dev \ +RUN apk add -U bash python3 python3-dev libpq postgresql-dev unixodbc-dev musl-dev g++ libffi-dev \ && pip3 install --upgrade pip setuptools \ && pip3 install --no-cache-dir -r requirements.txt \ + && ln -s /usr/bin/python3 /usr/bin/python \ && apk del python3-dev postgresql-dev unixodbc-dev musl-dev g++ libffi-dev