drishti-api / Dockerfile
arpy8's picture
remove sudo
5ae01c4
raw
history blame contribute delete
296 Bytes
FROM python:3.11.10
WORKDIR /code
RUN pip install --no-cache-dir uv
ENV VIRTUAL_ENV=/code/.venv
RUN uv venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements.txt .
RUN uv pip install --no-cache -r requirements.txt
COPY . .
ENV PORT=7860
EXPOSE $PORT
CMD ["python", "main.py"]