13 lines
368 B
Docker
13 lines
368 B
Docker
FROM python:3.12-slim-bookworm
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONPATH=/app
|
|
WORKDIR /app
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
|
COPY common ./common
|
|
COPY contracts ./contracts
|
|
COPY runtime ./runtime
|
|
RUN uv pip install --system ./common ./runtime
|
|
|
|
EXPOSE 8000
|
|
CMD ["uvicorn", "runtime.main:app", "--host", "0.0.0.0", "--port", "8000"]
|