add python3
This commit is contained in:
parent
e49776862e
commit
886211f908
@ -39,6 +39,8 @@ buildTAGS:
|
|||||||
- docker push hosttoday/ht-docker-node:npmts
|
- docker push hosttoday/ht-docker-node:npmts
|
||||||
- docker build -t hosttoday/ht-docker-node:npmpage -f Dockerfile_npmpage .
|
- docker build -t hosttoday/ht-docker-node:npmpage -f Dockerfile_npmpage .
|
||||||
- docker push hosttoday/ht-docker-node:npmpage
|
- docker push hosttoday/ht-docker-node:npmpage
|
||||||
|
- docker build -t hosttoday/ht-docker-node:python3 -f Dockerfile_python3 .
|
||||||
|
- docker push hosttoday/ht-docker-node:python3
|
||||||
tags:
|
tags:
|
||||||
- dockerbuild
|
- dockerbuild
|
||||||
|
|
||||||
|
13
Dockerfile_python3
Normal file
13
Dockerfile_python3
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM hosttoday/ht-docker-node:latest
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y -q --no-install-recommends \
|
||||||
|
python3 \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install pip and symlink python to python3
|
||||||
|
RUN curl -O https://bootstrap.pypa.io/get-pip.py \
|
||||||
|
&& python3 get-pip.py \
|
||||||
|
&& rm get-pip.py \
|
||||||
|
&& rm -r /usr/bin/python \
|
||||||
|
&& ln -s /usr/bin/python3 /usr/bin/python
|
Loading…
Reference in New Issue
Block a user