Skip to content

Commit 29fc664

Browse files
committed
fix: remove hardcoded UID to avoid conflicts
Let useradd pick the next available UID to prevent 'UID 1000 is not unique' error in Ubuntu 24.04
1 parent 55e10d2 commit 29fc664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN apt-get update && apt-get install -y \
2525
COPY --from=builder /build/target/release/redisctl /usr/local/bin/redisctl
2626

2727
# Create non-root user
28-
RUN useradd -m -u 1000 redis && \
28+
RUN useradd -m redis && \
2929
mkdir -p /home/redis/.config/redisctl && \
3030
chown -R redis:redis /home/redis
3131

0 commit comments

Comments
 (0)