Sharelock / Dockerfile
mac9087's picture
Update Dockerfile
8fa5d30 verified
Raw History Blame Contribute Delete
330 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy requirements first (better caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all application files
COPY . .
# Expose Flask port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]