From 2ee1088e9cd97b926c09c89138fd6ce88281e979 Mon Sep 17 00:00:00 2001 From: Christopher Obbard Date: Sun, 2 Jan 2022 18:30:14 +0000 Subject: [PATCH] Add Dockerfile Add a Dockerfile to have the ability to build a container from the app. Signed-off-by: Christopher Obbard --- Dockerfile | 10 ++++++++++ README.md | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c91741c --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/README.md b/README.md index 2c6e38b..737c9f1 100644 --- a/README.md +++ b/README.md @@ -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