Skip to content

Commit cec9c4b

Browse files
committed
Initial commit
0 parents  commit cec9c4b

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Image name: faucet/python3
2+
3+
FROM faucet/base
4+
RUN apk add --no-cache python3 && \
5+
python3 -m ensurepip && \
6+
rm -r /usr/lib/python*/ensurepip && \
7+
pip3 install --upgrade pip setuptools && \
8+
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
9+
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
10+
rm -r /root/.cache

Dockerfile.pi

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Image name: faucet/python3-pi
2+
3+
FROM faucet/base-pi
4+
RUN apk add --no-cache python3 && \
5+
python3 -m ensurepip && \
6+
rm -r /usr/lib/python*/ensurepip && \
7+
pip3 install --upgrade pip setuptools && \
8+
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
9+
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
10+
rm -r /root/.cache

README.rst

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Faucet Python3 Docker Image
2+
========================
3+
4+
Docker image for `python3 <https://www.python.org>`_.
5+
6+
Pull from Docker Hub
7+
--------------------
8+
9+
Built images are available on Docker Hub so that you don't need to build your own.
10+
11+
Images are available for the following architectures:
12+
13+
* `amd64 <https://hub.docker.com/r/faucet/python3/>`_
14+
* `armhf (for raspberry pi) <https://hub.docker.com/r/faucet/python3-pi/>`_

hooks/pre_build

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# We need qemu-user-static for arm/pi builds
4+
docker run --rm --privileged multiarch/qemu-user-static:register --reset

0 commit comments

Comments
 (0)