File: Dockerfile

package info (click to toggle)
python-pex 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 2,840 kB
  • sloc: python: 9,757; sh: 1,394; makefile: 165
file content (20 lines) | stat: -rw-r--r-- 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# TODO(John Sirois): Use a fixed image once base is published to Docker Hub; ie: pantsbuild/pex:base
ARG BASE_ID
FROM ${BASE_ID}

# Prepare developer shim that can operate on local files and not mess up perms in the process.
ARG USER
ARG UID
ARG GROUP
ARG GID

COPY create_docker_image_user.sh /root/
RUN /root/create_docker_image_user.sh ${USER} ${UID} ${GROUP} ${GID}

VOLUME /dev/pex
WORKDIR /dev/pex
RUN chown -R ${UID}:${GID} /dev/pex

USER ${USER}:${GROUP}

ENTRYPOINT ["tox"]