summay / Dockerfile
Huzaifa367's picture
Update Dockerfile
2c7ca4f verified
raw
history blame
602 Bytes
# Use the official Python image
FROM python:3.9-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Install system dependencies
RUN apt-get update && apt-get install -y \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements file and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy application files
COPY . .
# Expose necessary ports (if applicable)
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]