NLP_2k25_Project / Dockerfile
Harshb11's picture
Create Dockerfile
f14463f verified
raw
history blame contribute delete
683 Bytes
# Use Python 3.9 as the base
FROM python:3.9-slim
# Avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsm6 \
libxext6 \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy all project files into the container
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Expose the app (usually for Streamlit)
EXPOSE 7860
# Run your Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.enableCORS=false"]