Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -17,4 +17,7 @@ COPY --chown=user . .
|
|
| 17 |
# Test connectivity (this will run as the non-root user)
|
| 18 |
RUN curl -v https://api.telegram.org || echo "Connectivity test failed, but continuing build"
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 17 |
# Test connectivity (this will run as the non-root user)
|
| 18 |
RUN curl -v https://api.telegram.org || echo "Connectivity test failed, but continuing build"
|
| 19 |
|
| 20 |
+
RUN ping -c 4 8.8.8.8 || echo "Ping failed, but continuing"
|
| 21 |
+
RUN nslookup api.telegram.org || echo "DNS lookup failed, but continuing"
|
| 22 |
+
|
| 23 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|