Gopal05's picture
Update Dockerfile
121333e verified
Raw History Blame Contribute Delete
400 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY . /app
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
ENV PYTHONUNBUFFERED=1
ENV BACKEND_URL=http://127.0.0.1:8000
EXPOSE 7860
EXPOSE 8000
CMD sh -c "uvicorn main:app --host 0.0.0.0 --port 8000 & python ui.py"