PersonaTrip-Agent / Dockerfile
tracyshen301
Add Dockerfile for custom Python environment on Hugging Face Spaces
ddd550f
raw
history blame
376 Bytes
FROM python:3.13-bookworm
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100
WORKDIR /app
RUN python -m pip install --upgrade pip
RUN pip install --no-cache-dir uv
COPY pyproject.toml uv.lock* ./
RUN uv pip sync --system pyproject.toml --no-cache --verbose
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]