Sharelock / Dockerfile
mike23415's picture
Update Dockerfile
fdb48f7 verified
raw
history blame contribute delete
331 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"]