Spaces:
Runtime error
Runtime error
Download Dockerfile from sidhya/talentlens: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/spaces/sidhya/talentlens/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sidhya/talentlens/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sidhya/talentlens/resolve/main/Dockerfile
795 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONPATH="${PYTHONPATH}:/app" | |
| ENV STREAMLIT_HOME=/app/.streamlit | |
| ENV HF_HOME=/app/.cache | |
| # ------------------------------------------------------------- | |
| COPY ./backend/requirements.txt /app/backend_requirements.txt | |
| COPY ./frontend/requirements.txt /app/frontend_requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r /app/backend_requirements.txt && \ | |
| pip install --no-cache-dir -r /app/frontend_requirements.txt && \ | |
| python -m spacy download en_core_web_sm | |
| COPY ./backend /app/backend | |
| COPY ./frontend /app/frontend | |
| RUN chmod +x /app/frontend/start.sh | |
| RUN chown -R 1000:1000 /app | |
| EXPOSE 8501 | |
| CMD sh -c "uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 & /app/frontend/start.sh & wait" | |