Download Dockerfile from NCEE-Build-Lab/watsonx.ai_Function_Deployment_MNB_V2: direct link, hf CLI and curl.
- Browser
- Download file 763 Bytes
-
https://huggingface.co/spaces/NCEE-Build-Lab/watsonx.ai_Function_Deployment_MNB_V2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NCEE-Build-Lab/watsonx.ai_Function_Deployment_MNB_V2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NCEE-Build-Lab/watsonx.ai_Function_Deployment_MNB_V2/resolve/main/Dockerfile
763 Bytes
| FROM python:3.12-slim | |
| COPY --from=ghcr.io/astral-sh/uv:0.10.9 /uv /bin/uv | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| ENV UV_SYSTEM_PYTHON=1 | |
| COPY --link requirements.txt . | |
| COPY --link . . | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN uv pip install --no-cache-dir -r requirements.txt --upgrade | |
| ENV PYTHONPATH=/app:$PYTHONPATH | |
| ENV MARIMO_OUTPUT_MAX_BYTES=100000000 | |
| COPY --chown=user . /app | |
| RUN mkdir -p /app/__marimo__ && \ | |
| chown -R user:user /app && \ | |
| chmod -R 755 /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["marimo", "run", "main_app.py", "--include-code", "--host", "0.0.0.0", "--port", "7860"] | |