Spaces:
Runtime error
Runtime error
| FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime | |
| ENV TZ=Asia/Shanghai | |
| WORKDIR /app | |
| COPY . /app | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install --no-cache-dir opencv-python-headless -i https://pypi.org/simple | |
| # Create directories and files, then set permissions explicitly | |
| RUN mkdir -p /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs && \ | |
| touch /app/config_modification_tutorial.txt && \ | |
| chmod -R 775 /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs /app/config_modification_tutorial.txt && \ | |
| chmod 775 /app/config.txt | |
| EXPOSE 8888 | |
| CMD ["python", "main.py", "--host", "0.0.0.0", "--port", "8888", "--skip-pip"] |