Spaces:
Sleeping
Sleeping
Download Dockerfile from gui-sparim/teste_docs: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/spaces/gui-sparim/teste_docs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gui-sparim/teste_docs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gui-sparim/teste_docs/resolve/main/Dockerfile
725 Bytes
| FROM node:20-alpine AS frontend-builder | |
| WORKDIR /app/frontend | |
| COPY frontend/package*.json ./ | |
| RUN npm ci | |
| COPY frontend/ ./ | |
| ARG VITE_API_BASE_URL= | |
| ENV VITE_API_BASE_URL=${VITE_API_BASE_URL} | |
| RUN npm run build | |
| FROM python:3.11-slim AS runtime | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| ENV MODELOS_REPOSITORIO_PROVIDER=hf_dataset | |
| ENV MODELOS_REPOSITORIO_HF_REPO_ID=gui-sparim/repositorio_mesa | |
| ENV MODELOS_REPOSITORIO_HF_SUBDIR=modelos_dai | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| COPY --from=frontend-builder /app/frontend/dist /app/frontend/dist | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "uvicorn backend.app.main:app --host 0.0.0.0 --port ${PORT:-7860}"] | |