TextToSQLGenerator / Dockerfile
Prathyusha7113's picture
Update Dockerfile
0060031 verified
Raw
History Blame Contribute Delete
578 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Copy and install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy only necessary files
COPY app.py .
COPY student.db .
# Expose port
EXPOSE 7860
# Run the app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]