Moved install commands to docker file

This commit is contained in:
2020-05-06 10:49:14 +02:00
parent 308fd515a8
commit fe6126ea98
2 changed files with 6 additions and 2 deletions

View File

@@ -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"]

View File

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