Skip to content

Commit bfb0325

Browse files
committed
Try adding packages to handle DNS resolution in Ubuntu 24.04
1 parent 21a889f commit bfb0325

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Optional Arguments:
44
# --progress=plain : Prints plain output to terminal instead of windowed version.
55
# --build-args SPEC=... : Specify optional build argument to override. Default = gcc
6-
# e.g. --build-args SPEC=clang
6+
# e.g. --build-args SPEC=clang
77

88
# To build and run a spheral test:
99
# sudo env DOCKERBUILDKIT=1 docker build . --target spheral --tag spheral (--progress=plain) (--network none)
@@ -30,13 +30,12 @@ ARG HOST_CONFIG=docker-$SPEC
3030
# Update Ubuntu and install necessary packages.
3131
ENV DEBIAN_FRONTEND=noninteractive
3232

33-
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf && \
34-
echo "nameserver 8.8.4.4" >> /etc/resolv.conf && \
35-
echo "nameserver 1.1.1.1" >> /etc/resolv.conf
36-
3733
RUN apt-get update -y && \
3834
apt-get upgrade -y && \
3935
apt-get install -y \
36+
ca-certificates \
37+
netbase \
38+
iproute2 \
4039
build-essential \
4140
git \
4241
gfortran \
@@ -67,12 +66,10 @@ RUN apt-get update -y && \
6766
curl \
6867
libcurl4-openssl-dev \
6968
tk-dev \
70-
iputils-ping \
71-
dnsutils \
72-
ca-certificates && \
69+
iputils-ping && \
7370
rm -rf /var/lib/apt/lists/*
7471

75-
# Setup system locale for pip package encoding/decoding
72+
# Setup system locale for pip package encoding/decoding
7673
RUN locale-gen en_US.UTF-8
7774

7875
RUN echo "Testing DNS resolution..." && \

0 commit comments

Comments
 (0)