Spaces:
Runtime error
Runtime error
Download Dockerfile from lmends/MoneyCouple: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/lmends/MoneyCouple/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lmends/MoneyCouple/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lmends/MoneyCouple/resolve/main/Dockerfile
549 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libpq-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Hugging Face Spaces roda como UID 1000 | |
| RUN useradd -m -u 1000 user && chown -R user:user /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "run:app"] | |