Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files17 unmodified lines181920212223243 unmodified lines282930313233343536373839404117 unmodified lines# Install dependencies# --no-cache-dir reduces image size# --default-timeout=100 increases timeout for pip installRUN pip install --no-cache-dir --default-timeout=100 -r requirements.txtCOPY .env .3 unmodified linesCOPY api.py .COPY ./kig_core ./kig_core# Expose the port the API runs on (defined in api.py/uvicorn command)EXPOSE 8000# Command to run the Uvicorn server# It will look for an object named 'app' in the 'api.py' file# Runs on port 8000 and listens on all interfaces (0.0.0.0)# Note: For production, consider removing --reloadCMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]# --- Notes ---# Environment Variables:17 unmodified lines181920212223243 unmodified lines28293031323334353637383917 unmodified lines# Install dependencies# --no-cache-dir reduces image size# --default-timeout=100 increases timeout for pip installRUN pip install --no-cache-dir -r requirements.txtCOPY .env .3 unmodified linesCOPY api.py .COPY ./kig_core ./kig_core# Command to run the Uvicorn server# It will look for an object named 'app' in the 'api.py' file# Runs on port 8000 and listens on all interfaces (0.0.0.0)# Note: For production, consider removing --reloadCMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]# --- Notes ---# Environment Variables:
Dockerfile+2-4