PortFolio_Agent / Dockerfile
venkat23's picture
Update Docker File
afd3748 verified
raw
history blame contribute delete
561 Bytes
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Create user and set permissions
RUN useradd -m appuser && \
mkdir -p /app/src/temp_data && \
chown -R appuser:appuser /app
COPY requirements.txt ./
COPY src/ ./src/
RUN pip3 install -r requirements.txt
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
USER appuser
ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]