Add Dockerfile

Add a Dockerfile to have the ability to build a container from the app.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
pull/31/head
Christopher Obbard 2022-01-02 18:30:14 +00:00
parent f47e974c7c
commit 2ee1088e9c
2 changed files with 21 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM python:3-slim-bullseye
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENTRYPOINT [ "python", "./autodoist.py" ]

View File

@ -150,3 +150,14 @@ In addition, if you experience issues with syncing you can increase the api sync
For all arguments, please check out the help: For all arguments, please check out the help:
python autodoist.py --help python autodoist.py --help
## Docker container
To build the docker container, check out the repository and run:
docker build . --tag autodoist:latest
To run autodoist inside the docker container:
docker run -it autodoist:latest