Skip to content

Commit

Permalink
Dockerfile update.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Dec 17, 2024
1 parent fb0aa18 commit 54ff07b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
20 changes: 10 additions & 10 deletions Dockerfile_hub
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ RUN apt-add-repository multiverse && \
# Add latest ubuntu repos to sources.list
# add arch
RUN if [ "${CPU_ARCHITECTURE}" = "amd64" ]; then \
echo "deb http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-portsnoble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
elif [ "${CPU_ARCHITECTURE}" = "arm64" ]; then \
echo "deb [arch=arm64] http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src [arch=arm64] http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src [arch=arm64] http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
Expand Down
20 changes: 10 additions & 10 deletions Dockerfile_singleuser
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ RUN apt-add-repository multiverse && \
# Add latest ubuntu repos to sources.list
# add arch
RUN if [ "${CPU_ARCHITECTURE}" = "amd64" ]; then \
echo "deb http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-portsnoble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
elif [ "${CPU_ARCHITECTURE}" = "arm64" ]; then \
echo "deb [arch=arm64] http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src [arch=arm64] http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src [arch=arm64] http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
Expand Down
22 changes: 11 additions & 11 deletions Dockerfile_singleuser_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ RUN apt-add-repository multiverse && \
apt-get update && apt-get upgrade -y

# Add latest ubuntu repos to sources.list

# add arch
RUN if [ "${CPU_ARCHITECTURE}" = "amd64" ]; then \
echo "deb http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://ports.ubuntu.com/ubuntu-portsnoble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
elif [ "${CPU_ARCHITECTURE}" = "arm64" ]; then \
echo "deb [arch=arm64] http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src [arch=arm64] http://archive.canonical.com/ubuntu/ noble partner" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb-src [arch=arm64] http://archive.canonical.com/ubuntu/ jammy partner" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list ; \
Expand Down

0 comments on commit 54ff07b

Please sign in to comment.