extraa-learn-app / Dockerfile
RajendrakumarPachaiappan's picture
Upload folder using huggingface_hub
692a86a verified
raw
history blame contribute delete
829 Bytes
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install OS dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl && \
rm -rf /var/lib/apt/lists/*
# Copy the current directory contents into the container
COPY . /app
# Install Python dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Expose the default Streamlit port (8501) for the frontend
EXPOSE 8501
# Set Streamlit environment variables (uncomment if necessary)
ENV STREAMLIT_SERVER_PORT=8501
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
# Run the Streamlit app on container startup
CMD ["streamlit", "run", "app.py"]