Download Dockerfile from TechAvenger/Fault_Detection_For_Industry: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/TechAvenger/Fault_Detection_For_Industry/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TechAvenger/Fault_Detection_For_Industry/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TechAvenger/Fault_Detection_For_Industry/resolve/main/Dockerfile
434 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app3:app"] |