GreenVision-Docker / Dockerfile
LuisTo97's picture
Update Dockerfile
9a53d59 verified
Raw History Blame Contribute Delete
451 Bytes
FROM python:3.9-slim
WORKDIR /app
# Necesitamos git para los subprocess.run(["git", ...]) que configuran autores
RUN apt-get update && apt-get install -y git \
&& rm -rf /var/lib/apt/lists/*
# Redirigimos HOME para que Streamlit pueda escribir su config
ENV HOME=/tmp
COPY . .
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]