Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files123456710 unmodified lines1819202122232425262728293031323334# Use Python 3.10 as base imageFROM python:3.10# Set working directoryWORKDIR /home/user/app# Install system dependencies10 unmodified lines&& rm -rf /var/lib/apt/lists/* \&& git lfs install# Copy requirements.txt into containerCOPY requirements.txt /tmp/requirements.txt# Install Python dependenciesRUN pip install --no-cache-dir -r /tmp/requirements.txt# Copy application code into containerCOPY . /home/user/app# Expose port (if web app, modify this part accordingly)EXPOSE 8080# Run the application (adjust this to your entry point)CMD ["python", "app.py"]123456710 unmodified lines1819202122232425262728293031323334# Use Python 3.10 base imageFROM python:3.10# Set working directory inside the containerWORKDIR /home/user/app# Install system dependencies10 unmodified lines&& rm -rf /var/lib/apt/lists/* \&& git lfs install# Copy the requirements.txt into the containerCOPY requirements.txt /tmp/requirements.txt# Install Python dependencies from requirements.txtRUN pip install --no-cache-dir -r /tmp/requirements.txt# Copy the application code into the containerCOPY . /home/user/app# Expose the necessary port for the applicationEXPOSE 8080# Command to run the applicationCMD ["python", "app.py"]
Dockerfile+7-7