forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (27 loc) · 831 Bytes
/
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
27
28
29
30
31
#---
# name: python
# group: build
# depends: [build-essential, pip_cache]
# notes: installs core `python3` packages and `pip`
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG PYTHON_VERSION_ARG
ENV PYTHON_VERSION=${PYTHON_VERSION_ARG} \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=utf-8 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=true \
PIP_CACHE_PURGE=true \
PIP_ROOT_USER_ACTION=ignore \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
PIP_WHEEL_DIR=/opt/wheels \
PIP_VERBOSE=3 \
TWINE_NON_INTERACTIVE=1 \
DEBIAN_FRONTEND=noninteractive \
PATH=/opt/venv/bin:$PATH
#PYTHONPATH=/opt/venv/lib/python${PYTHON_VERSION_ARG}/site-packages:/usr/lib/python3/dist-packages:$PYTHONPATH \
COPY install.sh /tmp/install_python.sh
RUN /tmp/install_python.sh