Skip to content

Commit e838468

Browse files
GitHKAndrei Neagumergify[bot]
authored
♻️ making docker-api-proxy buildable on arm (#7497)
Co-authored-by: Andrei Neagu <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 08ce0fe commit e838468

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

services/docker-api-proxy/Dockerfile

+4-5
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

+1-1
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)