mirror of
https://github.com/katanemo/plano.git
synced 2026-04-29 19:06:34 +02:00
Overhaul demos directory: cleanup, restructure, and standardize configs (#760)
This commit is contained in:
parent
c3591bcbf3
commit
473996d35d
205 changed files with 304 additions and 5223 deletions
|
|
@ -1,40 +0,0 @@
|
|||
# Blazing fast Python Docker builds with uv
|
||||
|
||||
# The builder image, used to build the virtual environment
|
||||
FROM python:3.14 as builder
|
||||
|
||||
# Install uv
|
||||
RUN pip install --no-cache-dir uv
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /code
|
||||
|
||||
# Copy dependency files
|
||||
COPY pyproject.toml uv.lock ./
|
||||
RUN touch README.md
|
||||
|
||||
# Install dependencies using uv
|
||||
RUN uv sync --frozen --no-dev
|
||||
|
||||
# The runtime image, used to just run the code provided its virtual environment
|
||||
FROM python:3.14-slim as runtime
|
||||
|
||||
RUN apt-get update && apt-get install -y curl
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
ENV VIRTUAL_ENV=/code/.venv \
|
||||
PATH="/code/.venv/bin:$PATH"
|
||||
|
||||
COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
|
||||
|
||||
COPY main.py ./
|
||||
|
||||
HEALTHCHECK \
|
||||
--interval=5s \
|
||||
--timeout=1s \
|
||||
--start-period=1s \
|
||||
--retries=3 \
|
||||
CMD curl http://localhost:80/healthz
|
||||
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80", "--log-level", "debug"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue