Skip to content

Common python packages for Butter.ai

Notifications You must be signed in to change notification settings

butter/docker-pybutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Common python packages for Butter.ai

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published