Mercurial > evolve
annotate contrib/docker/pytype/Dockerfile @ 6650:9c329a7a5922
ci: install the newest pytype to date (2024.1.5)
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 06 Jan 2024 13:26:13 -0300 |
parents | da3fd8644ad9 |
children |
rev | line source |
---|---|
6649
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 FROM registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.0 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 USER ci-runner |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
5 ENV PATH=/home/ci-runner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 ENV PYTHONPATH=/home/ci-runner/.local/lib/python3.11/site-packages |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 |
6650
9c329a7a5922
ci: install the newest pytype to date (2024.1.5)
Anton Shestakov <av6@dwimlabs.net>
parents:
6649
diff
changeset
|
8 RUN python3 -m pip install --user --break-system-packages --upgrade pytype==2024.1.5 |
6649
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
9 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
10 ADD --chown=ci-runner entrypoint.sh /home/ci-runner/entrypoint.sh |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
11 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
12 RUN chmod -R a=rwX /home/ci-runner/.local/ /home/ci-runner/entrypoint.sh |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
13 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
14 CMD /home/ci-runner/entrypoint.sh |