Spaces:
Sleeping
Sleeping
Download Dockerfile from HeshamXOR/MalwareGuard: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/HeshamXOR/MalwareGuard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HeshamXOR/MalwareGuard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HeshamXOR/MalwareGuard/resolve/main/Dockerfile
537 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends build-essential curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY backend/requirements.txt /app/backend/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/backend/requirements.txt | |
| COPY backend /app/backend | |
| COPY urlmodel_info /app/urlmodel_info | |
| WORKDIR /app/backend | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |