Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +0 -6
Dockerfile
CHANGED
|
@@ -7,13 +7,10 @@ LABEL description="VINCIE Service com persistência e multi-GPU"
|
|
| 7 |
|
| 8 |
# Argumentos de build (ajuste se necessário)
|
| 9 |
ARG DEBIAN_FRONTEND=noninteractive
|
| 10 |
-
ARG CUDA_VISIBLE_DEVICES=0
|
| 11 |
-
# Começa com 1 GPU; ajuste em runtime via ENV ou start.sh
|
| 12 |
|
| 13 |
# Diretórios persistentes (usados em HF Spaces)
|
| 14 |
ENV REPOS_DIR=/data/repos
|
| 15 |
ENV MODELS_DIR=/data/models
|
| 16 |
-
ENV LOGS_DIR=/data/logs
|
| 17 |
|
| 18 |
# ---------------- Sistema & Python ----------------
|
| 19 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
@@ -36,14 +33,11 @@ COPY . .
|
|
| 36 |
COPY requirements.txt ./requirements.txt
|
| 37 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
# Instala dependências do requirements.txt
|
| 42 |
#RUN pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu122/ \
|
| 43 |
# && pip3 install --no-cache-dir huggingface-hub transformers gradio # Adicione se não estiver em requirements.txt
|
| 44 |
|
| 45 |
|
| 46 |
-
|
| 47 |
# Permissões para scripts
|
| 48 |
RUN chmod +x /app/start.sh /app/builder.sh /app/info.sh
|
| 49 |
|
|
|
|
| 7 |
|
| 8 |
# Argumentos de build (ajuste se necessário)
|
| 9 |
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Diretórios persistentes (usados em HF Spaces)
|
| 12 |
ENV REPOS_DIR=/data/repos
|
| 13 |
ENV MODELS_DIR=/data/models
|
|
|
|
| 14 |
|
| 15 |
# ---------------- Sistema & Python ----------------
|
| 16 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 33 |
COPY requirements.txt ./requirements.txt
|
| 34 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 35 |
|
|
|
|
|
|
|
| 36 |
# Instala dependências do requirements.txt
|
| 37 |
#RUN pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu122/ \
|
| 38 |
# && pip3 install --no-cache-dir huggingface-hub transformers gradio # Adicione se não estiver em requirements.txt
|
| 39 |
|
| 40 |
|
|
|
|
| 41 |
# Permissões para scripts
|
| 42 |
RUN chmod +x /app/start.sh /app/builder.sh /app/info.sh
|
| 43 |
|