Sign inSign up

pyfreyr/python

By pyfreyr

Updated over 7 years ago

Docker Image for Python based on Ubuntu.

Image
0

1.1K

pyfreyr/python repository overview

Docker Image for Python based on Ubuntu.

How to use this image

Create a Dockerfile in your Python app project:

FROM pyfreyr/python:3.6-bionic

WORKDIR /web

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

COPY . .

CMD [ "python", "./app.py" ]

You can then build and run the Docker image:

$ docker build -t my-python-app .
$ docker run -it --rm --name my-running-app my-python-app

Tag summary

Content type

Image

Digest

Size

239 MB

Last updated

over 7 years ago

docker pull pyfreyr/python