Spaces:
Runtime error
Runtime error
Download Dockerfile from thisisgini/ecommerce_bot: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/thisisgini/ecommerce_bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/thisisgini/ecommerce_bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/thisisgini/ecommerce_bot/resolve/main/Dockerfile
539 Bytes
| FROM ghcr.io/meta-pytorch/openenv-base:latest | |
| WORKDIR /app | |
| COPY . /app | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \ | |
| /root/.local/bin/uv pip install --system fastapi uvicorn httpx openai openenv | |
| # This tells Python to treat /app as the home base for all imports | |
| ENV PYTHONPATH="/app" | |
| EXPOSE 7860 | |
| # We run from the root, targeting the folder specifically | |
| CMD ["python3", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] |