From 4e3952f69d37fe543369cc2c6c86c55070f00d20 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 21 Jan 2020 19:25:01 +0000 Subject: [PATCH] Make application work as package from inside docker container --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7692f0c..3472221 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM python:3.8.1-alpine3.11 COPY requirements.txt /app/requirements.txt RUN pip install -r /app/requirements.txt -COPY ./todoist_github /app +COPY ./todoist_github /app/todoist_github -CMD ["/app/cli.py"] +WORKDIR /app + +CMD ["python3", "-m", "todoist_github"]