Spaces:
Running
Running
Download Dockerfile from OpenTogether/community-playlist: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/spaces/OpenTogether/community-playlist/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/OpenTogether/community-playlist/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/OpenTogether/community-playlist/resolve/main/Dockerfile
758 Bytes
| FROM node:22-slim AS frontend | |
| WORKDIR /build | |
| COPY frontend/package.json frontend/package-lock.json ./ | |
| RUN npm ci | |
| COPY frontend/ ./ | |
| RUN npm run build | |
| FROM python:3.13-slim | |
| ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 APP_ENV=production | |
| RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 app | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=app:app backend ./backend | |
| COPY --from=frontend --chown=app:app /build/dist ./frontend/dist | |
| USER app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--no-access-log", "--proxy-headers", "--forwarded-allow-ips", "*"] | |