Spaces:
Runtime error
Runtime error
Download Dockerfile from ariansyahdedy/webclient: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/ariansyahdedy/webclient/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ariansyahdedy/webclient/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ariansyahdedy/webclient/resolve/main/Dockerfile
519 Bytes
| # Use a lightweight Python image | |
| FROM python:3.9-slim | |
| # Create working directory | |
| WORKDIR /app | |
| # Copy requirements first for caching | |
| COPY requirements.txt /app/ | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app and static files | |
| COPY app /app/app | |
| COPY static /app/static | |
| # Expose port (Hugging Face Spaces typically uses 7860 by default, but you can adjust if needed) | |
| EXPOSE 7860 | |
| # Start the app with uvicorn | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |