Spaces:
Sleeping
Sleeping
| FROM python:3.9-slim | |
| # Instala dependencias basicas, rclone oficial do Linux e injeta o Node.js v18 | |
| RUN apt-get update && apt-get install -y curl ffmpeg rclone && \ | |
| curl -fsSL $(echo "h t t p s : / / deb . nodesource . com / setup _ 18 . x" | tr -d ' ') | bash - && \ | |
| apt-get install -y nodejs && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| RUN chown -R user:user /app | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| COPY --chown=user ./package.json ./package.json | |
| RUN npm install | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . /app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |