Spaces:
Paused
Paused
Download Dockerfile from nathycodes/presentercoach: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nathycodes/presentercoach/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/Dockerfile
1.35 kB
| FROM node:20-bookworm-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PYTHONUNBUFFERED=1 \ | |
| HOME=/app/data/home \ | |
| INTERNAL_API_URL="http://127.0.0.1:8000" \ | |
| ALLOW_FRAME_EMBEDDING="true" \ | |
| PORT=7860 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| python3 \ | |
| python3-pip \ | |
| ffmpeg \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python backend + cloud DB/S3 dependencies | |
| RUN pip3 install --no-cache-dir --break-system-packages \ | |
| fastapi "uvicorn[standard]" sqlalchemy psycopg2-binary pydantic pydantic-settings \ | |
| python-multipart "python-jose[cryptography]" "passlib[bcrypt]" "bcrypt<4.1" \ | |
| httpx email-validator faster-whisper arq reportlab boto3 | |
| # Install Node.js workspace dependencies | |
| COPY package.json package-lock.json tsconfig.base.json ./ | |
| COPY packages/shared/package.json ./packages/shared/package.json | |
| COPY apps/web/package.json ./apps/web/package.json | |
| RUN npm ci --no-audit --no-fund | |
| # Copy application source and build Next.js production bundle | |
| COPY . . | |
| RUN chmod +x /app/infra/scripts/start_cloud.sh /app/infra/scripts/run_presenter_coach.sh \ | |
| && mkdir -p /app/data/storage /app/data/home \ | |
| && npm --workspace apps/web run build \ | |
| && chmod -R 777 /app/data /app/apps/web/.next | |
| EXPOSE 7860 | |
| CMD ["/app/infra/scripts/start_cloud.sh"] | |