Commit 359dfc2a authored by ibuler's avatar ibuler

[Docker] Docker support

parent d48b9b8f
......@@ -16,5 +16,7 @@ RUN rm -f keys/.access_key
RUN cp config_docker.py config.py
# If you want build node js, you run npm install, but nodejs need gcc more than 4.8, so you need install it
EXPOSE 5000
CMD python run_server.py
\ No newline at end of file
......@@ -2,7 +2,7 @@
DEBUG = True
# NAME = 'luna'
# BIND_HOST = '0.0.0.0'
BIND_HOST = '0.0.0.0'
# LISTEN_PORT = 5000
JUMPSERVER_ENDPOINT = 'http://127.0.0.1:8080/'
# ACCESS_KEY = None
......
......@@ -4,7 +4,7 @@ import os
DEBUG = True
# NAME = 'luna'
# BIND_HOST = '0.0.0.0'
BIND_HOST = '0.0.0.0'
# LISTEN_PORT = 5000
JUMPSERVER_ENDPOINT = os.environ.get("JUMPSERVER_ENDPOINT") or 'http://jumpserver:8080/'
# ACCESS_KEY = None
......
libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
\ No newline at end of file
gcc-c++ libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
\ No newline at end of file
......@@ -22,8 +22,7 @@ if __name__ == '__main__':
command_task.run()
record_task.run()
app.bootstrap()
socket_io.run(app)
# app.run(threaded=True, host=host, port=port)
socket_io.run(app, host=host, port=port)
except KeyboardInterrupt:
app.stop()
sys.exit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment