ai-code-explainer / Dockerfile
Karthix1's picture
V0.1
6661c5b verified
# Stage 1: Use an official Python runtime as a parent image
# Using a -slim version is a good practice as it reduces the final image size.
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.headless=true"]