Download Dockerfile from CystronCode/api-gateway-defender: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/spaces/CystronCode/api-gateway-defender/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CystronCode/api-gateway-defender/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CystronCode/api-gateway-defender/resolve/main/Dockerfile
358 Bytes
| FROM python:3.11-slim | |
| ENV PORT=7860 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN useradd -m -u 1000 appuser && chown -R appuser /app | |
| USER appuser | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] |