diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..19f8bda --- /dev/null +++ b/.dockerignore @@ -0,0 +1,13 @@ +.venv/ +__pycache__/ +*.pyc +.git/ +.env +*.db +master.xprv.enc +logs/ +data/ +.pytest_cache/ +*.egg-info/ +tests/ +.claude/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..62b0e10 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY pyproject.toml ./ +COPY app ./app +COPY migrations ./migrations +COPY alembic.ini ./ +COPY scripts ./scripts + +RUN pip install --no-cache-dir . + +EXPOSE 8123 + +CMD ["/bin/sh", "-c", "alembic upgrade head && exec uvicorn app.main:app --host 0.0.0.0 --port 8123"]