urdusentimentdocker / Dockerfile
Ahsamkk's picture
Update Dockerfile
5c6e9dd verified
raw
history blame contribute delete
440 Bytes
# Use a minimal Python base image
FROM python:3.10-slim
# Avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install only what’s required
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Copy files
WORKDIR /app
COPY app.py requirements.txt /app/
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 7860
EXPOSE 7860
# Run your app
CMD ["python", "app.py"]