diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..01524f1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3-alpine + +ARG ADMIN_PASSWORD + +WORKDIR /catask +COPY . . +RUN pip install --no-cache-dir -r requirements.txt + +RUN echo $'DB_HOST = 127.0.0.1\n\ +DB_NAME = catask\n\ +DB_USER = catask\n\ +DB_PASS = catask\n\ +DB_PORT = 3306\n\ +ADMIN_PASSWORD = $ADMIN_PASSWORD\n\ +APP_SECRET = $(python3 -c "import secrets; print(secrets.token_hex())")' > .env +COPY config.example.json config.json + +ENTRYPOINT [ "gunicorn", "-w", "4", "app:app" ] \ No newline at end of file