26 lines
473 B
Docker
26 lines
473 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
UV_COMPILE_BYTECODE=1 \
|
|
UV_LINK_MODE=copy \
|
|
PATH="/root/.local/bin:${PATH}"
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
COPY pyproject.toml /app/
|
|
|
|
RUN uv sync --no-dev
|
|
|
|
COPY . /app
|
|
|
|
EXPOSE 8003
|
|
|
|
ENTRYPOINT ["sh", "/app/scripts/entrypoint.sh"]
|