[update] Fix build problem of 'Dockerfile'

This commit is contained in:
ShigemichiMatsuzaki 2022-12-13 14:54:28 +09:00
parent c04fbb9bbc
commit f59f7d10c1

View file

@ -1,4 +1,6 @@
ARG basetag="418.87.01-ubuntu18.04" # Ubuntu only
# Ubuntu only
ARG basetag="418.87.01-ubuntu18.04"
FROM nvidia/driver:"${basetag}"
ENV DEBIAN_FRONTEND=noninteractive
@ -19,6 +21,11 @@ RUN apt-get update && \
ENV LC_ALL=C.UTF-8
RUN update-locale LC_ALL="C.UTF-8"
# Install dependencies
RUN python3 -m pip install --upgrade pip
COPY ./requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt
# Install nvitop
COPY . /nvitop
WORKDIR /nvitop