First commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Dockerfile.dev
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /frontend
|
||||
|
||||
# Instalar dependencias del sistema para desarrollo
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
git \
|
||||
vim \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copiar requirements
|
||||
COPY requirements_frontend.txt ./requirements.txt
|
||||
|
||||
# Instalar dependencias de desarrollo también
|
||||
RUN pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir -r requirements.txt && \
|
||||
pip install --no-cache-dir black pylint pytest
|
||||
|
||||
# Usuario no-root
|
||||
RUN useradd -m -u 1000 devuser && \
|
||||
chown -R devuser:devuser /frontend
|
||||
USER devuser
|
||||
|
||||
EXPOSE 8501
|
||||
|
||||
# Streamlit se ejecutará con hot-reload automático
|
||||
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
||||
Reference in New Issue
Block a user