- Fase A: license templates, search history, cost estimator - Fase B: import URL, bulk ZIP, batch download - Fase C: comparison mode, mesh validation, measurement tool - Fase D: cross-section clipping, overhang heatmap, layer animation - Refactor Pydantic/SQLAlchemy warnings - 24 tests pytest - README actualizado - WebP thumbnails, lazy loading, cache headers
24 lines
465 B
Docker
24 lines
465 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install uv
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|
|
|
# Copy project files
|
|
COPY pyproject.toml .python-version ./
|
|
COPY app/ ./app/
|
|
COPY static/ ./static/
|
|
|
|
# Create directories for data
|
|
RUN mkdir -p uploads thumbnails images
|
|
|
|
# Install dependencies and project
|
|
RUN uv sync --no-dev
|
|
|
|
# Expose port
|
|
EXPOSE 8000
|
|
|
|
# Run server
|
|
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|