RagaAI / Dockerfile
ashishbangwal's picture
change docker2
2108804
raw
history blame
555 Bytes
FROM python:3.10-slim
# Add ~/.local/bin to PATH for script access
ENV PATH="/root/.local/bin:$PATH"
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Copy files
COPY . .
# Install Python dependencies
RUN pip install --user --upgrade pip \
&& pip install --user -r requirement.txt
# Expose FastAPI and Streamlit ports
EXPOSE 8000
EXPOSE 8501
# Run both FastAPI and Streamlit
CMD uvicorn streamlit_app.main_api:app --host 0.0.0.0 --port 8000 & \
streamlit run streamlit_app/app.py --server.port 8501