Skip to content

Commit

Permalink
Use UID 1001 instead of 999
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 28, 2020
1 parent f197314 commit a07ddea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ dockerCommands := Seq(
"apt", "autoremove", "-y", "-q", "&&",
"rm", "-rf", "/var/lib/apt/lists/*", "&&",
"(", "type", "groupadd", "1>/dev/null", "2>&1", "&&",
"groupadd", "-g", "999", "cortex", "||",
"addgroup", "-g", "999", "-S", "cortex",
"groupadd", "-g", "1001", "cortex", "||",
"addgroup", "-g", "1001", "-S", "cortex",
")", "&&",
"(", "type", "useradd", "1>/dev/null", "2>&1", "&&",
"useradd", "--system", "--uid", "1000", "--gid", "1000", "cortex", "||",
"adduser", "-S", "-u", "1000", "-G", "cortex", "cortex",
"useradd", "--system", "--uid", "1001", "--gid", "1001", "cortex", "||",
"adduser", "-S", "-u", "1001", "-G", "cortex", "cortex",
")"),
//format: on
Cmd("ADD", "--chown=root:root", "opt", "/opt"),
Expand Down

0 comments on commit a07ddea

Please sign in to comment.