ladogton2010 commited on
Commit
b312c96
·
1 Parent(s): e8b37ac

add user user

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -20,6 +20,10 @@ RUN chmod 777 /var/log/apache2/error.log; ls -la /var/log/apache2/error.log
20
 
21
  COPY mvc /var/www/html/
22
  RUN ls -la /var/www/html/
23
- USER root
 
 
 
 
24
 
25
  CMD ["bash", "-c", "whoami; id; cat /etc/apache2/sites-enabled/000-default.conf; service apache2 start; tail -F /var/log/apache2/error.log"]
 
20
 
21
  COPY mvc /var/www/html/
22
  RUN ls -la /var/www/html/
23
+
24
+ RUN useradd -m -u 1000 user;
25
+ ENV HOME=/home/user \
26
+ PATH=/home/user/.local/bin:$PATH
27
+ USER user
28
 
29
  CMD ["bash", "-c", "whoami; id; cat /etc/apache2/sites-enabled/000-default.conf; service apache2 start; tail -F /var/log/apache2/error.log"]