Download Dockerfile from Angshul/FGAO-API: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/spaces/Angshul/FGAO-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Angshul/FGAO-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Angshul/FGAO-API/resolve/main/Dockerfile
426 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 | |
| RUN useradd --create-home --uid 1000 user | |
| WORKDIR /home/user/app | |
| COPY --chown=user pyproject.toml ./ | |
| COPY --chown=user src ./src | |
| RUN pip install ".[server,openai]" | |
| COPY --chown=user fgao.yaml ./ | |
| COPY --chown=user data ./data | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["fgao", "serve", "--config", "fgao.yaml", "--host", "0.0.0.0", "--port", "7860"] | |