|
|
11 years ago | |
|---|---|---|
| .. | ||
| .keep | 11 years ago | |
| README-content.md | 11 years ago | |
| README-short.txt | 11 years ago | |
| README.md | 11 years ago | |
| logo.png | 11 years ago | |
Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C. The language provides constructs intended to enable clear programs on both a small and large scale.
Dockerfile in your python app projectFROM python:3
ADD . /usr/src/app
WORKDIR /usr/src/app
CMD ["python3", "./your-daemon-or-script.py"]
or (if you need caveman Python):
FROM python:2
ADD . /usr/src/app
WORKDIR /usr/src/app
CMD ["python2", "./your-daemon-or-script.py"]
docker build -t my-python-app .
docker run -it --name some-python-app my-python-app