BinaryONe commited on
Commit
bbe7450
·
1 Parent(s): af49b82
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. init.sh +1 -5
  3. start.sh +6 -0
Dockerfile CHANGED
@@ -138,5 +138,5 @@ RUN echo "* Current User WHO AM I $(whoami)"
138
  #RUN chmod 777 /app/venv/lib/python3.12/site-packages/known_hosts
139
 
140
  #CMD [ "/usr/sbin/sshd -p 2222 &&","source /app/venv/bin/activate &&","wssh --address='0.0.0.0' --port=7860 --xsrf=False --debug=True --maxconn=4 --policy=autoadd"]
141
- CMD ["/app/start.sh"]
142
  ENTRYPOINT ["/bin/sh", "/app/init.sh"]
 
138
  #RUN chmod 777 /app/venv/lib/python3.12/site-packages/known_hosts
139
 
140
  #CMD [ "/usr/sbin/sshd -p 2222 &&","source /app/venv/bin/activate &&","wssh --address='0.0.0.0' --port=7860 --xsrf=False --debug=True --maxconn=4 --policy=autoadd"]
141
+ #CMD ["/app/start.sh"]
142
  ENTRYPOINT ["/bin/sh", "/app/init.sh"]
init.sh CHANGED
@@ -50,8 +50,4 @@ netstat -tuln
50
 
51
  /app/start.sh
52
 
53
- echo "* Activating virtual environment *"
54
- source /app/WebSSHEnv/bin/activate || { echo "Failed to activate virtual environment"; exit 1; }
55
- echo "* Starting WebSSH application *PWD $(pwd)*"
56
- cd /app || { echo "Failed to change directory to /app"; exit 1; }
57
- python3 -u -m WebSSH || { echo "Failed to start WebSSH application"; exit 1; }
 
50
 
51
  /app/start.sh
52
 
53
+
 
 
 
 
start.sh CHANGED
@@ -50,3 +50,9 @@ generate_admin_ssh_keys
50
  add_admin_authorized_keys
51
  tail -f /var/log/auth.log
52
 
 
 
 
 
 
 
 
50
  add_admin_authorized_keys
51
  tail -f /var/log/auth.log
52
 
53
+ echo "* Activating virtual environment *"
54
+ source /app/WebSSHEnv/bin/activate || { echo "Failed to activate virtual environment"; exit 1; }
55
+ echo "* Starting WebSSH application *PWD $(pwd)*"
56
+ cd /app || { echo "Failed to change directory to /app"; exit 1; }
57
+ python3 -u -m WebSSH || { echo "Failed to start WebSSH application"; exit 1; }
58
+