Spaces:
Sleeping
Sleeping
File size: 646 Bytes
269f632 cd52852 269f632 98b73e0 269f632 | 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 | FROM python:3.11-slim
WORKDIR /app
# System deps
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy & install Python deps first for layer caching
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application, including the prebuilt frontend bundle in frontend/dist
COPY . .
# Install package so [project.scripts] is callable
RUN pip install --no-cache-dir -e .
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PORT=8000
EXPOSE 8000
# Use the entry point declared in pyproject.toml
CMD ["python", "-m", "server.app"]
|