Spaces:
Sleeping
Sleeping
File size: 560 Bytes
a4ec802 b0e4bf7 a4ec802 86e94f2 a4ec802 03d78e4 4bb8b78 a4ec802 acce523 |
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 |
# Dockerfile
FROM python:3.10
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
ENV HF_HOME="/tmp/poetica-cache"
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir -m 777 /tmp/poetica-cache
RUN chmod 777 /app
# Copy the application code
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |