Cancel Google DNS
Browse files- Dockerfile +0 -2
Dockerfile
CHANGED
|
@@ -3,7 +3,5 @@ WORKDIR /app
|
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 5 |
COPY . .
|
| 6 |
-
# 强行指定使用 Google 的 DNS
|
| 7 |
-
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
| 8 |
EXPOSE 7860
|
| 9 |
CMD ["python", "app.py"]
|
|
|
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 5 |
COPY . .
|
|
|
|
|
|
|
| 6 |
EXPOSE 7860
|
| 7 |
CMD ["python", "app.py"]
|