Skip to content

Commit 5eeb086

Browse files
author
Andrei Neagu
committed
replace gosu with su-exec
1 parent 0fb8613 commit 5eeb086

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

services/docker-api-proxy/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ RUN addgroup -g ${SC_USER_ID} ${SC_USER_NAME} && \
1616
--home /home/${SC_USER_NAME} \
1717
${SC_USER_NAME}
1818

19-
RUN apk add --no-cache socat curl && \
20-
curl -L -o /usr/local/bin/gosu https://github.com/tianon/gosu/releases/download/1.16/gosu-amd64 && \
21-
chmod +x /usr/local/bin/gosu && \
22-
gosu --version
23-
19+
RUN apk add --no-cache \
20+
curl \
21+
socat \
22+
su-exec
2423

2524
# Health check to ensure the proxy is running
2625
HEALTHCHECK \

services/docker-api-proxy/docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ fi
3131
# Add the user to the group
3232
adduser "$SC_USER_NAME" $GROUPNAME
3333

34-
exec gosu "$SC_USER_NAME" "$@"
34+
exec su-exec "$SC_USER_NAME" "$@"

0 commit comments

Comments
 (0)