This repository was archived by the owner on Jun 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,11 @@ RUN apk add --no-cache brotli brotli-dev libssh2 nghttp2-dev && \
82
82
# ##############################################################
83
83
# add non privileged curl user
84
84
# ##############################################################
85
- RUN addgroup -S curl_group && adduser -S curl_user -G curl_group
85
+
86
+ # To fix some errors in kubernetes, we need a numeric id. We add this test to
87
+ # avoid future errors if this ever changes.
88
+ RUN addgroup -S curl_group && adduser -S curl_user -G curl_group && \
89
+ [ "$(cat /etc/passwd | grep curl_user | cut -d : -f3 )" -eq 100 ]
86
90
87
91
# ##############################################################
88
92
# set curl ca bundle
@@ -104,7 +108,9 @@ RUN ln -s /usr/lib/libcurl.so.4 /usr/lib/libcurl.so
104
108
# ##############################################################
105
109
# set user
106
110
# ##############################################################
107
- USER curl_user
111
+ # We use a numeric id (that is tested for stability above) to avoid errors in
112
+ # Kubernetes.
113
+ USER 100
108
114
109
115
# ##############################################################
110
116
# set entrypoint
You can’t perform that action at this time.
0 commit comments