diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eefee2e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM python:3.11-slim + +# Install curl and CA certificates +RUN apt-get update && \ + apt-get install -y curl ca-certificates make && \ + rm -rf /var/lib/apt/lists/* + +# Install uv and set up environment +SHELL ["/bin/bash", "-c"] +RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \ + source /root/.local/bin/env && \ + uv --version + +# Add uv to PATH for all subsequent commands +ENV PATH="/root/.local/bin:${PATH}" + +COPY pyproject.toml uv.lock /app/ +WORKDIR /app + +RUN uv sync --extra api + +COPY . /app/ +EXPOSE 800 + +ENTRYPOINT ["make", "api"] +