diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..39f70c8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,28 @@ +.git +.gitignore + +.venv +venv +env +__pycache__ +*.pyc +*.pyo +*.pyd +.pytest_cache +.mypy_cache +.ruff_cache + +*.db +*.db-wal +*.db-shm +*.sqlite +*.sqlite3 + +sfm/data +bridges/captures +example-events +captures +logs + +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8fb05f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.11-slim + +WORKDIR /app + +RUN apt-get update && \ + apt-get install -y --no-install-recommends curl && \ + rm -rf /var/lib/apt/lists/* + +COPY pyproject.toml requirements.txt ./ +COPY minimateplus ./minimateplus +COPY sfm ./sfm +COPY bridges ./bridges + +RUN pip install --no-cache-dir -e . + +EXPOSE 8200 + +CMD ["python", "-m", "uvicorn", "sfm.server:app", "--host", "0.0.0.0", "--port", "8200"] \ No newline at end of file