mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
[update] Fix build problem of 'Dockerfile'
This commit is contained in:
parent
c04fbb9bbc
commit
f59f7d10c1
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue