-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pre-commit): bump version ot 2.7.1 and add dockerfile for full v…
…ariant
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM python:3.8-alpine | ||
|
||
ENV PATH="$PATH:/root/.pyenv/bin:/root/.pyenv/shims" | ||
ENV version=2.7.1 | ||
|
||
RUN apk add --no-cache --virtual=.build-deps curl git linux-headers openssl-dev sqlite-dev readline-dev bzip2-dev ncurses-dev sqlite-dev patch xz-dev zlib-dev && \ | ||
apk add --no-cache --virtual=.run-deps bash build-base curl-dev openssl readline libffi libbz2 libffi-dev bzip2 ncurses sqlite sqlite-libs zlib xz postgresql-dev ca-certificates && \ | ||
curl --location https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \ | ||
pyenv update && \ | ||
pyenv install 3.7.8 && \ | ||
pyenv install 3.8.4 && \ | ||
pyenv global 3.8.4 3.7.8 && \ | ||
pyenv rehash && \ | ||
apk add --no-cache git npm bash build-base && \ | ||
npm config set unsafe-perm true && \ | ||
pip install pre-commit==$version && \ | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* && \ | ||
rm -rf /tmp/* && \ | ||
find /root/.pyenv/versions -type d '(' -name '__pycache__' -o -name 'test' -o -name 'tests' ')' -exec rm -rfv '{}' + && \ | ||
find /root/.pyenv/versions -type f '(' -name '*.py[co]' -o -name '*.exe' ')' -exec rm -fv '{}' + | ||
|
||
CMD ["pre-commit"] | ||
|
||
LABEL name=pre-commit version=$version \ | ||
maintainer="Kiwi.com Platform <software.platform@kiwi.com>" |