From fe6126ea98bb2faceb3fe252cbd5a55ca7e14165 Mon Sep 17 00:00:00 2001 From: Conrad Date: Wed, 6 May 2020 10:49:14 +0200 Subject: [PATCH] Moved install commands to docker file --- Dockerfile | 4 ++++ entrypoint.sh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4d6b4dd..8d67bd7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,7 @@ FROM python:3 + +RUN pip install --no-cache-dir -q --upgrade pip +RUN pip install --no-cache-dir -q autopep8 + COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 7af3adb..7f64c30 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,8 +21,8 @@ EOF } echo "Installing autopep8..." -sudo pip install -q --upgrade pip -sudo pip install -q autopep8 +pip install -q --upgrade pip +pip install -q autopep8 echo "Running autopep8..." autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!"