FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
thirdparty/python/Dockerfile at master · napframework/thirdparty · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Mar 7, 2024. It is now read-only.
napframework
/
thirdparty
Public archive
Notifications
You must be signed in to change notification settings
Fork
3
Star
3
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
thirdparty
/
python
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (26 loc) · 951 Bytes
Breadcrumbs
thirdparty
/
python
/
Dockerfile
Copy path
File metadata and controls
29 lines (26 loc) · 951 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
ARG
inst_dir=
"/tmp/out"
ARG
image_name
FROM
nap-${image_name} AS builder
ARG
inst_dir
ENV
python_version=
"3.6.4"
RUN
\
export PYTHON_DIR=Python-${python_version} && \
export PYTHON_ARCH=$PYTHON_DIR.tar.xz && \
wget --progress=bar:force:noscroll https://www.python.org/ftp/python/${python_version}/$PYTHON_ARCH && \
tar -xf $PYTHON_ARCH && \
cd $PYTHON_DIR && \
./configure --enable-shared --prefix=${inst_dir} && \
make -j `nproc` && \
make -j `nproc` install && \
patchelf --set-rpath
\$
ORIGIN/../lib ${inst_dir}/bin/python3.6 && \
patchelf --set-rpath
\$
ORIGIN/../lib ${inst_dir}/bin/python3.6m && \
rm -rf ${inst_dir}/lib/python3.6/test && \
rm -rf ${inst_dir}/lib/python3.6/tkinter && \
rm -rf ${inst_dir}/share && \
rm -f ${inst_dir}/lib/python3.6/config-*/libpython3.6m.a && \
cp LICENSE ${inst_dir}/ && \
rm -rf ../$PYTHON_ARCH \
../$PYTHON_DIR
FROM
scratch
ARG
inst_dir
COPY
--from=builder ${inst_dir} /
Back
|
FazBrowse Home
|
New Git URL