author | Anton Shestakov <av6@dwimlabs.net> |
Mon, 08 Jan 2024 13:35:02 +0100 | |
changeset 51307 | 87bfd1703597 |
permissions | -rw-r--r-- |
51307
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 |
FROM registry.heptapod.net/mercurial/ci-images/mercurial-core:v2.0 |
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 |
|
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 |
USER ci-runner |
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 |
|
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
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 |
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 |
ENV PYTHONPATH=/home/ci-runner/.local/lib/python3.11/site-packages |
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 |
|
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
8 |
RUN python3 -m pip install --user --break-system-packages --upgrade pytype==2023.11.21 |
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
9 |
|
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
10 |
ADD --chown=ci-runner entrypoint.sh /home/ci-runner/entrypoint.sh |
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
11 |
|
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
12 |
RUN chmod -R a=rwX /home/ci-runner/.local/ /home/ci-runner/entrypoint.sh |
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
13 |
|
87bfd1703597
contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
14 |
CMD /home/ci-runner/entrypoint.sh |