Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 4.73 KB

README.md

File metadata and controls

68 lines (49 loc) · 4.73 KB

Butter.ai Common Python Packages

Supported tags and respective Dockerfile links

What is PyButter?

PyButter is a set of common python packages used at Butter.ai. There are two image versions, a base image for standard python services, and an NLPkit version for Butter.ai natural language processing and machine learning services.

How to use this image

Create a Dockerfile in your Python app project

FROM butter/pybutter:py3-2018-03
CMD [ "python", "./your-daemon-or-script.py" ]

or (if you need to use Python 2):

FROM butter/pybutter:2018-03
CMD [ "python", "./your-daemon-or-script.py" ]

Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Python script by using the Python Docker image directly:

$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp butter/pybutter:py3-nlpkit python your-daemon-or-script.py

or (again, if you need to use Python 2):

$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp butter/pybutter:nlpkit python your-daemon-or-script.py

License

View license information for Python 2 and Python 3.