Spaces:
Sleeping
Sleeping
Commit
·
dc4cd08
1
Parent(s):
1fbb6e2
Add command to display public IP of Docker host during container startup
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -30,6 +30,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 30 |
RUN mkdir -p /root/.ssh && \
|
| 31 |
ssh-keyscan -H 192.250.235.27 >> /root/.ssh/known_hosts
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# CMD ["gunicorn","BridgeMentor.wsgi:application", "--bind", "0.0.0.0:7860", "--timeout", "30", "--workers", "3"]
|
| 34 |
|
| 35 |
CMD ["python", "manage.py", "runserver", "7860", "--verbosity", "2","--noreload"]
|
|
|
|
| 30 |
RUN mkdir -p /root/.ssh && \
|
| 31 |
ssh-keyscan -H 192.250.235.27 >> /root/.ssh/known_hosts
|
| 32 |
|
| 33 |
+
|
| 34 |
+
RUN echo "----------------------------------------" && \
|
| 35 |
+
echo "🌍 Public IP of Docker host (from inside container):" && \
|
| 36 |
+
curl -s ifconfig.me && \
|
| 37 |
+
echo "\n----------------------------------------"
|
| 38 |
+
|
| 39 |
# CMD ["gunicorn","BridgeMentor.wsgi:application", "--bind", "0.0.0.0:7860", "--timeout", "30", "--workers", "3"]
|
| 40 |
|
| 41 |
CMD ["python", "manage.py", "runserver", "7860", "--verbosity", "2","--noreload"]
|