diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f48cea1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +.pytest_cache +.ruff_cache +__pycache__ +*.pyc +.venv +workplans diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..80f7a21 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.12-slim@sha256:d764629ce0ddd8c71fd371e9901efb324a95789d2315a47db7e4d27e78f1b0e9 + +ENV PYTHONDONTWRITEBYTECODE=1 \ + PYTHONUNBUFFERED=1 \ + PORT=8080 + +WORKDIR /app +COPY . /app +RUN pip install --no-cache-dir . \ + && useradd --system --uid 10001 --home-dir /nonexistent qonto + +USER 10001 +EXPOSE 8080 +ENTRYPOINT ["qonto-assistant"]