mirror of
https://github.com/creyD/autopep8_action.git
synced 2026-04-16 05:10:33 +02:00
Moved install commands to docker file
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
FROM python:3
|
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
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "Installing autopep8..."
|
echo "Installing autopep8..."
|
||||||
sudo pip install -q --upgrade pip
|
pip install -q --upgrade pip
|
||||||
sudo pip install -q autopep8
|
pip install -q autopep8
|
||||||
|
|
||||||
echo "Running autopep8..."
|
echo "Running autopep8..."
|
||||||
autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!"
|
autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!"
|
||||||
|
|||||||
Reference in New Issue
Block a user