mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
chore: replace hardcoded Ubuntu code name in Dockerfile
This commit is contained in:
parent
7e9ddd38bb
commit
e46f4d9e96
1 changed files with 5 additions and 4 deletions
|
|
@ -1,12 +1,13 @@
|
|||
ARG basetag="418.87.01-ubuntu18.04"
|
||||
ARG basetag="418.87.01-ubuntu18.04" # Ubuntu only
|
||||
FROM nvidia/driver:"${basetag}"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Update APT sources
|
||||
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
|
||||
RUN . /etc/os-release && [ "${NAME}" = "Ubuntu" ] && \
|
||||
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu ${UBUNTU_CODENAME} main universe" > /etc/apt/sources.list && \
|
||||
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu ${UBUNTU_CODENAME}-updates main universe" >> /etc/apt/sources.list && \
|
||||
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu ${UBUNTU_CODENAME}-security main universe" >> /etc/apt/sources.list
|
||||
|
||||
# Install Python 3
|
||||
RUN apt-get update && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue