bharathkumarms's picture
Upload 9 files
225070f verified
raw
history blame contribute delete
482 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application
COPY main.py .
COPY app.py .
# Create uploads directory
RUN mkdir -p uploads
# Expose port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]