File size: 692 Bytes
2e29585 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
ENV PATH=${CUDA_HOME}/bin:${PATH}
ENV C_INCLUDE_PATH=${CUDA_HOME}/include:${C_INCLUDE_PATH}
ENV LIBRARY_PATH=${CUDA_HOME}/lib64:${LIBRARY_PATH}
RUN apt-get update && apt-get install -y \
python3-launchpadlib \
software-properties-common \
&& apt-get update && apt-get install -y \
python3-pip python3\
python3-dev tensorrt \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
EXPOSE 7860
CMD ["python3", "entrypoint.py"] |