Mercurial > evolve
annotate contrib/docker/pytype/Dockerfile @ 6649:da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 05 Jan 2024 13:58:25 -0300 |
parents | |
children | 9c329a7a5922 |
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 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
8 RUN python3 -m pip install --user --break-system-packages --upgrade pytype==2023.11.21 |
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 |