-
nlpkit-2018-03
,py2-nlpkit
,nlpkit
(nlpkit-2017-05/Dockerfile) -
py3-nlpkit-2018-03
,py3-nlpkit
, (py3-nlpkit-2017-05/Dockerfile)
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.
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" ]
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