Commit ·
6b27b28
1
Parent(s): 641f4f1
update Dockerfile
Browse files1234567891011121314151617181920# Base image with PythonFROM python:3.10-slim# Set working directoryWORKDIR /app# Copy the entire project into the containerCOPY . /app# Install dependenciesRUN pip install --no-cache-dir -r requirements.txt# If your app has additional requirements:# RUN pip install --no-cache-dir -r requirements.txt# Expose the default portEXPOSE 7860# Run your appCMD ["python", "app.py"]123456789101112131415161718# Dockerfile (updated)FROM python:3.10-slimWORKDIR /app# Copy all project filesCOPY . /app# Change ownership to allow writingRUN chmod -R a+w /app# Install dependenciesRUN pip install --no-cache-dir flask# Expose default portEXPOSE 7860CMD ["python", "app.py"]
Dockerfile+8-10