This repository is extended from the python
image.
Just copy this in a Dockerfile
file.
FROM cambalab/python3-uno
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "python", "./your-daemon-or-script.py" ]
Then build the image and run it:
docker build -t my-python-app .
docker run -it --rm --name my-running-app my-python-app
docker build -t my-python-uno .
docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp my-python-uno python tu_script.py