Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Roelofs
dt_ctrl
Commits
cdb39545
Commit
cdb39545
authored
Feb 14, 2021
by
Michel Roelofs
Browse files
Don't run as root
parent
fcc890ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
cdb39545
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment