GuysRGithub commited on
Commit
fe29a6c
1 Parent(s): b9d1ea9
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. app.py +1 -1
Dockerfile CHANGED
@@ -27,4 +27,5 @@ COPY --chown=user . $HOME/app
27
  # Download a checkpoint
28
  RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
29
  EXPOSE 80
 
30
  CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]
 
27
  # Download a checkpoint
28
  RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
29
  EXPOSE 80
30
+ EXPOSE 7860
31
  CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]
app.py CHANGED
@@ -101,5 +101,5 @@ def send_message(recipient_id, text):
101
 
102
  return response.json()
103
 
104
- subprocess.Popen(["autossh", "-M", "0","-o","StrictHostKeyChecking=no", "-i", "id_rsa", "-R", "guysmedchatt:80:localhost:7860", "serveo.net"])
105
  # subprocess.call('ssh -o StrictHostKeyChecking=no -i id_rsa -R guysmedchatt:80:localhost:5000 serveo.net', shell=True)
 
101
 
102
  return response.json()
103
 
104
+ subprocess.Popen(["autossh", "-M", "0", "-o", "StrictHostKeyChecking=no", "-i", "id_rsa", "-R", "guysmedchatt:80:localhost:7860", "serveo.net"])
105
  # subprocess.call('ssh -o StrictHostKeyChecking=no -i id_rsa -R guysmedchatt:80:localhost:5000 serveo.net', shell=True)