This commit is contained in:
artem 2025-04-16 23:58:48 +03:00
parent c4710466a1
commit 8c296400f2
1 changed files with 26 additions and 0 deletions

26
Dockerfile Normal file
View File

@ -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"]