File size: 512 Bytes
d4fbe8d
 
 
 
ea68f29
d4fbe8d
 
 
 
 
1f2d094
ea68f29
e05d812
ea68f29
e05d812
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.10-slim

# Instala herramientas necesarias
RUN apt-get update && \
    apt-get install -y curl unzip && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

RUN pip download --no-deps --no-cache-dir --retries 999 --timeout 60 --index-url https://download.pytorch.org/whl/rocm7.2 torch==2.13.0+rocm7.2 -d . && mv *.whl torch.whl

# Abre puerto 7860
EXPOSE 7860

# Mantiene el contenedor encendido después de iniciar el servidor
CMD python3 -m http.server 7860 & tail -f /dev/null