Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -40,13 +40,13 @@ RUN echo "const express = require('express');" > app.js \
|
|
| 40 |
&& echo "});" >> app.js \
|
| 41 |
&& echo "app.listen(port, () => console.log('Server running on port ' + port));" >> app.js
|
| 42 |
|
| 43 |
-
# ИСПРАВЛЕННАЯ НАСТРОЙКА WARP (на основе актуального help)
|
| 44 |
-
RUN warp-cli mode proxy && \
|
| 45 |
-
warp-cli proxy port 24000 && \
|
| 46 |
-
warp-cli registration new --accept-tos
|
| 47 |
-
|
| 48 |
# Скрипт запуска
|
| 49 |
RUN echo '#!/bin/bash' > /entrypoint.sh \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
&& echo 'warp-cli connect' >> /entrypoint.sh \
|
| 51 |
&& echo 'while true; do' >> /entrypoint.sh \
|
| 52 |
&& echo ' warp-cli disconnect' >> /entrypoint.sh \
|
|
|
|
| 40 |
&& echo "});" >> app.js \
|
| 41 |
&& echo "app.listen(port, () => console.log('Server running on port ' + port));" >> app.js
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
# Скрипт запуска
|
| 44 |
RUN echo '#!/bin/bash' > /entrypoint.sh \
|
| 45 |
+
&& echo 'warp-svc &' >> /entrypoint.sh \ # Запускаем сервис в фоне
|
| 46 |
+
&& echo 'sleep 5' >> /entrypoint.sh \ # Ждем инициализации сервиса
|
| 47 |
+
&& echo 'warp-cli registration new --accept-tos' >> /entrypoint.sh \
|
| 48 |
+
&& echo 'warp-cli mode proxy' >> /entrypoint.sh \
|
| 49 |
+
&& echo 'warp-cli proxy port 24000' >> /entrypoint.sh \
|
| 50 |
&& echo 'warp-cli connect' >> /entrypoint.sh \
|
| 51 |
&& echo 'while true; do' >> /entrypoint.sh \
|
| 52 |
&& echo ' warp-cli disconnect' >> /entrypoint.sh \
|