Nowa998 commited on
Commit
3a19c28
·
verified ·
1 Parent(s): f4fdf46

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -6,17 +6,18 @@ RUN apt update && apt install -y wget curl openssh-server openjdk-17-jre-headles
6
  RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
7
  RUN echo "root:eren" | chpasswd
8
 
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
 
6
  RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
7
  RUN echo "root:eren" | chpasswd
8
 
9
+ # Install Remote.it correctly
10
  RUN curl -L https://downloads.remote.it/remoteit/install_agent.sh | bash
11
+ RUN apt update && apt install -y remoteit
12
 
13
  # Create app directory
14
  RUN mkdir -p /app
15
 
16
  # Create start script
17
  RUN echo '#!/bin/bash' > /app/start.sh
18
+ RUN echo 'remoteit &' >> /app/start.sh
19
  RUN echo 'sleep 10' >> /app/start.sh
20
+ RUN echo 'remoteit status' >> /app/start.sh
21
  RUN echo 'echo "=============================="' >> /app/start.sh
22
  RUN echo 'echo "Claim this device at: https://app.remote.it"' >> /app/start.sh
23
  RUN echo 'echo "=============================="' >> /app/start.sh