Spaces:
Runtime error
Runtime error
Download Dockerfile from DarwinAnim8or/TextModSimple: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/spaces/DarwinAnim8or/TextModSimple/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DarwinAnim8or/TextModSimple/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DarwinAnim8or/TextModSimple/resolve/main/Dockerfile
521 Bytes
| # Dockerfile | |
| # Use the official Python image as the base image | |
| FROM python:3.9 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Create a writeable cache directory | |
| RUN mkdir -p /app/cache && chmod 777 /app/cache | |
| # Copy the requirements file to the working directory | |
| COPY requirements.txt . | |
| # Install the dependencies | |
| RUN pip install -r requirements.txt | |
| # Copy the rest of the files to the working directory | |
| COPY . . | |
| # Expose port 5000 | |
| EXPOSE 7860 | |
| # Run the start.sh script when the container starts | |
| CMD ["sh", "start.sh"] |