Download Dockerfile from chanfasf/HotTrack: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/chanfasf/HotTrack/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/chanfasf/HotTrack/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/chanfasf/HotTrack/resolve/main/Dockerfile
665 Bytes
| FROM node:18-alpine AS frontend-builder | |
| WORKDIR /app/frontend | |
| COPY frontend/package*.json ./ | |
| RUN npm install | |
| COPY frontend/ ./ | |
| RUN npm run build | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY backend/requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY backend/app ./app | |
| COPY --from=frontend-builder /app/frontend/dist ./app/static | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |