Sign inSign up

wee0/python

By wee0

•Updated almost 7 years ago

A docker image to run python.

Image
0

154

wee0/python repository overview

docker run --rm -it wee0/python:3 bash

docker run --rm -it wee0/python:3 python -V

docker run --rm -it --name tmp-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp wee0/python:3 python your-script.py

自定义镜像

FROM wee0/python:3

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./your-script.py" ]

Tag summary

Content type

Image

Digest

Size

333.5 MB

Last updated

almost 7 years ago

docker pull wee0/python:3