Spaces:
Sleeping
Sleeping
Download Dockerfile from dellweb3/workos-office: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/spaces/dellweb3/workos-office/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dellweb3/workos-office/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dellweb3/workos-office/resolve/main/Dockerfile
557 Bytes
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends fonts-wqy-zenhei && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| COPY APIGateway/requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| COPY --chown=user:user . . | |
| USER user | |
| ENV PYTHONUNBUFFERED=1 PYTHONUTF8=1 WORKOS_PDF_FONT=/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "deploy.huggingface.app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |