Spaces:
Runtime error
Runtime error
Download Dockerfile from damientheodore/AutoExpress: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/spaces/damientheodore/AutoExpress/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/damientheodore/AutoExpress/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/damientheodore/AutoExpress/resolve/main/Dockerfile
577 Bytes
| # Use the official Python image and set it to support multiple architectures | |
| FROM python:3 | |
| # Set working directory | |
| WORKDIR /AutoExpress/ | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the entire project into the container | |
| COPY . . | |
| # Expose the port that Flask will run on | |
| EXPOSE 5000 | |
| # Set environment variable for Flask | |
| ENV FLASK_APP=autoexpress | |
| ENV FLASK_RUN_HOST=0.0.0.0 | |
| ENV FLASK_RUN_PORT=5000 | |
| # Command to run the Flask app | |
| CMD ["flask", "run"] | |