Spaces:
Sleeping
Sleeping
File size: 375 Bytes
742eac0 24cc383 742eac0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.9-slim
WORKDIR /app
# Create the cache directory and give full write permissions
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
# Set TORCH_HOME to the cache directory
ENV TORCH_HOME=/app/cache
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]
|