Add Python Container

This commit is contained in:
Hongzhan Chen
2019-04-28 04:45:46 -04:00
committed by qzheng527
parent 52d995c05c
commit 230cba5536
4 changed files with 41 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM clearlinux:latest
MAINTAINER hongzhan.chen@intel.com
RUN swupd update $swupd_args && \
swupd bundle-add python3-basic $swupd_args
RUN rm -rf /var/lib/swupd
CMD ["python3"]
+31
View File
@@ -0,0 +1,31 @@
Python
==========
This provides a Clear Linux* python container
Build
-----
```
docker build -t clearlinux/python .
```
Or just pull it from Dockerhub
---------------------------
```
docker pull clearlinux/python
```
Start python Container
-----------------------
```
docker run -d clearlinux/python
```
How to use this image
---------------------
- See ``How to use this image`` section of the official python image [page](https://hub.docker.com/_/python).
Extra Build ARGs
----------------
- ``swupd_args`` Specifies [SWUPD](https://clearlinux.org/documentation/swupdate_how_to_run_the_updater.html) flags
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg