-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathDockerfile
26 lines (23 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM alpine:3.21
ENV PATH="$PATH:/root/.pyenv/bin:/root/.pyenv/shims"
ENV version=4.24.1
RUN apk add --no-cache --virtual=.build-deps bzip2-dev cargo curl git linux-headers ncurses-dev openssl-dev patch readline-dev sqlite-dev sqlite-dev 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.9.21 && \
pyenv install 3.10.16 && \
pyenv install 3.11.11 && \
pyenv install 3.12.9 && \
pyenv install 3.13.2 && \
pyenv global 3.13.2 3.12.9 3.11.11 3.10.16 3.9.21 && \
pyenv rehash && \
pip install tox==$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 ["tox"]
LABEL name=tox version=$version \
maintainer="Alex Viscreanu [email protected]"