Add Dockerfile

Add a Dockerfile to create a container.

Signed-off-by: Christopher Obbard <chris@64studio.com>
pull/17/head
Christopher Obbard 2022-01-02 18:30:14 +00:00
parent 67935a5b0c
commit 7aa35fb65b
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:
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