Files
wehub-resource-sync 67296cb4a7
Deploy Docs / deploy (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:26:53 +08:00

28 lines
547 B
Docker

# Use Python 3.11 slim image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install uv for faster dependency management
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Copy project files
COPY pyproject.toml uv.lock README.md ./
COPY src ./src
COPY data ./data
COPY .env.example .env.example
# Install dependencies
RUN uv sync --frozen --no-dev
# Create volume mount points
VOLUME ["/app/data"]
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Run the application
ENTRYPOINT ["uv", "run", "horizon"]
CMD []