Spaces:
Paused
Paused
Adarsh Kumar commited on
Update Dockerfile
Browse files1234567891011121314151617181920212223242526FROM python:3.11-slimENV PYTHONDONTWRITEBYTECODE=1 \PYTHONUNBUFFERED=1RUN useradd -m -u 1000 userWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir --upgrade pip && \pip install --no-cache-dir -r requirements.txtCOPY . .RUN chown -R user:user /appUSER userEXPOSE 7860CMD ["uvicorn", "app:app", \"--host", "0.0.0.0", \"--port", "7860", \"--workers", "1", \"--timeout-keep-alive", "120", \"--log-level", "info"]12345678910111213141516# Dockerfile.clone — Exact clone these inception files to space and run directlyFROM python:3.11-slimWORKDIR /appRUN apt-get update && apt-get install -y --no-install-recommends git curl build-essential && rm -rf /var/lib/apt/lists/*# Clone current repo exactly — branch arena/01a0b57f-serv or mainRUN git clone https://github.com/Adarshukumar/serv__.git /tmp/serv__ && \ls -la /tmp/serv__/inception/ && \cp -r /tmp/serv__/inception/* /app/ && \rm -rf /tmp/serv__ && \ls -la /app/RUN pip install --no-cache-dir -r /app/requirements.txtEXPOSE 7860ENV PYTHONUNBUFFERED=1ENV PORT=7860ENV PYTHONPATH=/appCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips=*"]
Dockerfile+13-23