Unverified Commit d510d1f0 authored by Michel Roelofs's avatar Michel Roelofs Committed by Tammo Jan Dijkema
Browse files

Don't run as root

parent 80646cb1
......@@ -52,6 +52,10 @@ port=8000\n\
#RUN sed -i -e 's/window.location.host/window.location.hostname+":8000"/' /var/www/console/htdocs/index.html && \
# sed -i -e 's/window.location.host/window.location.hostname+":8000"/' /var/www/console/htdocs/mech.html
CMD ulimit -n 1024 && screen -d -m /root/dt_ctrl/controller/dt_ctrl /root/dt_ctrl/controller/dt_ctrl.ctrl && screen -d -m bash -c 'cd /root/dt_ctrl/console/console && ./start_console.sh' && bash
RUN groupadd -g 80000 consoledemo && useradd -g consoledemo -M -u 80000 consoledemo
USER consoledemo:consoledemo
CMD ulimit -n 1024 && screen -d -m /root/dt_ctrl/controller/dt_ctrl /root/dt_ctrl/controller/dt_ctrl.ctrl && screen -d -m bash -c "cd /root/dt_ctrl/console/console && ./start_console.sh" && bash
EXPOSE 8000
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