Browse Source

Merge before 1.10 release - non root user

David Burke 3 years ago
parent
commit
04a32bf79c
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Dockerfile

+ 2 - 3
Dockerfile

@@ -25,8 +25,7 @@ EXPOSE 8080
 
 COPY . /code/
 
-# Breaking change - uncomment in 1.10
-#RUN useradd -u 5000 app && chown app:app /code
-#USER app:app
+RUN useradd -u 5000 app && chown app:app /code
+USER app:app
 
 CMD ["./bin/start.sh"]