Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -9
Dockerfile
CHANGED
|
@@ -9,16 +9,19 @@ RUN echo "root:eren" | chpasswd
|
|
| 9 |
# Install Remote.it
|
| 10 |
RUN curl -L https://downloads.remote.it/remoteit/install_agent.sh | bash
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Create start script
|
| 13 |
-
RUN echo '#!/bin/bash
|
| 14 |
-
remoteit-agent &
|
| 15 |
-
sleep 10
|
| 16 |
-
remoteit-agent status
|
| 17 |
-
echo "=============================="
|
| 18 |
-
echo "Claim this device at: https://app.remote.it"
|
| 19 |
-
echo "=============================="
|
| 20 |
-
service ssh start
|
| 21 |
-
tail -f /dev/null' > /app/start.sh
|
| 22 |
RUN chmod +x /app/start.sh
|
| 23 |
|
| 24 |
EXPOSE 22
|
|
|
|
| 9 |
# Install Remote.it
|
| 10 |
RUN curl -L https://downloads.remote.it/remoteit/install_agent.sh | bash
|
| 11 |
|
| 12 |
+
# Create app directory
|
| 13 |
+
RUN mkdir -p /app
|
| 14 |
+
|
| 15 |
# Create start script
|
| 16 |
+
RUN echo '#!/bin/bash' > /app/start.sh
|
| 17 |
+
RUN echo 'remoteit-agent &' >> /app/start.sh
|
| 18 |
+
RUN echo 'sleep 10' >> /app/start.sh
|
| 19 |
+
RUN echo 'remoteit-agent status' >> /app/start.sh
|
| 20 |
+
RUN echo 'echo "=============================="' >> /app/start.sh
|
| 21 |
+
RUN echo 'echo "Claim this device at: https://app.remote.it"' >> /app/start.sh
|
| 22 |
+
RUN echo 'echo "=============================="' >> /app/start.sh
|
| 23 |
+
RUN echo 'service ssh start' >> /app/start.sh
|
| 24 |
+
RUN echo 'tail -f /dev/null' >> /app/start.sh
|
| 25 |
RUN chmod +x /app/start.sh
|
| 26 |
|
| 27 |
EXPOSE 22
|