DeMaking commited on
Commit
217d71b
·
verified ·
1 Parent(s): 487ba68

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -18,7 +18,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
  RUN apt-get update && apt-get install -y dnsutils
19
 
20
  # Force using Google's DNS
21
- RUN echo "nameserver 8.8.8.8" >> /etc/resolvconf/resolv.conf.d/head && resolvconf
 
22
 
23
  # Copy the app files
24
  COPY --chown=user . /app
 
18
  RUN apt-get update && apt-get install -y dnsutils
19
 
20
  # Force using Google's DNS
21
+ RUN sed -i '1inameserver 8.8.8.8\nnameserver 8.8.4.4' /etc/resolv.conf || echo "Failed to update DNS"
22
+
23
 
24
  # Copy the app files
25
  COPY --chown=user . /app