mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-19 04:07:42 +00:00
Add Python Container
This commit is contained in:
@@ -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"]
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user