mirror of
http://88.130.71.182:3000/BlitTech/contexta_be.git
synced 2026-06-12 23:23:21 +00:00
20 lines
356 B
Docker
20 lines
356 B
Docker
FROM python:3.12-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
RUN apk add --no-cache gcc musl-dev python3-dev
|
|
|
|
# Install uv via pip (since it's not an Alpine package)
|
|
RUN pip install uv
|
|
|
|
COPY pyproject.toml .
|
|
COPY uv.lock .
|
|
|
|
RUN uv pip install --system .
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] |