nvitop/Dockerfile
2021-04-03 21:49:03 +08:00

18 lines
628 B
Docker

FROM nvidia/driver:418.87.01-ubuntu18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main universe" > /etc/apt/sources.list && \
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic-updates main universe" >> /etc/apt/sources.list && \
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic-security main universe" >> /etc/apt/sources.list && \
usermod -o -u 0 -g 0 _apt
RUN apt-get update
RUN apt-get install -yq python3 python3-pip
COPY . /nvitop
WORKDIR /nvitop
RUN pip3 install .
ENV LANG C.UTF-8
ENTRYPOINT [ "python3", "nvitop.py" ]