Spaces:
Sleeping
Sleeping
File size: 555 Bytes
c7e8ea1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # Simple Dockerfile for Energy & Memory RAM Optimization Environment
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
COPY pyproject.toml uv.lock ./
COPY . .
# Install uv if not available
RUN pip install uv
# Install dependencies
RUN uv sync --frozen --no-install-project
# Install the project itself
RUN uv pip install -e .
# Expose port
EXPOSE 8000
# Run the server
CMD ["uv", "run", "server"] |