Skip to content

Commit 10ebc35

Browse files
committed
Make sure docker users have correct uid/gid
1 parent 23ae2cc commit 10ebc35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

botfest/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ docker {
8787

8888
from("eclipse-temurin:24-jre-alpine")
8989

90-
runShell("addgroup -S bot")
91-
runShell("adduser -S bot -G bot")
90+
runShell("addgroup --gid 1001 -S bot")
91+
runShell("adduser --uid 101 -S bot -G bot")
9292
user("bot")
9393

9494
workdir("/bot")

platform_api/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ docker {
109109
from("eclipse-temurin:24-jre-alpine")
110110
runShell("apk add --no-cache git")
111111

112-
runShell("addgroup -S platform")
113-
runShell("adduser -S platform -G platform")
112+
runShell("addgroup --gid 1001 -S platform")
113+
runShell("adduser --uid 1001 -S platform -G platform")
114114
runShell("mkdir -p /app")
115115
runShell("chown platform /app")
116116

0 commit comments

Comments
 (0)