CounselAssistant / Dockerfile
Ashokreddy6's picture
Update Dockerfile
04a6203 verified
Raw
History Blame Contribute Delete
1.44 kB
# ------------------------------------------------------------
# Base image officially supported by Hugging Face Spaces
# ------------------------------------------------------------
FROM python:3.10
# ------------------------------------------------------------
# Install minimal system dependencies
# ------------------------------------------------------------
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
gcc \
libstdc++6 \
&& rm -rf /var/lib/apt/lists/*
# ------------------------------------------------------------
# Set working directory
# ------------------------------------------------------------
WORKDIR /app
# ------------------------------------------------------------
# Copy project files
# ------------------------------------------------------------
COPY . .
# ------------------------------------------------------------
# Install Python dependencies
# ------------------------------------------------------------
RUN pip install --no-cache-dir -r requirements.txt
# ------------------------------------------------------------
# Expose Streamlit port
# ------------------------------------------------------------
EXPOSE 7860
# ------------------------------------------------------------
# Run Streamlit app
# ------------------------------------------------------------
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]