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!"