Update Dockerfile
Browse files- 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
|
|
|
|
| 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
|