Spaces:
Sleeping
Sleeping
Download deployment/Dockerfile from Prerna43/Shopify_AI: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/Prerna43/Shopify_AI/resolve/main/deployment/Dockerfile
- Command line
-
hf download hf://spaces/Prerna43/Shopify_AI/deployment/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Prerna43/Shopify_AI/resolve/main/deployment/Dockerfile
449 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends build-essential curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] | |