Skip to content

Commit 1506db3

Browse files
authored
add libcap
Signed-off-by: Zoey <[email protected]>
1 parent 8f10fa7 commit 1506db3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl
8989

9090
FROM python:3.11.3-alpine3.17
9191
COPY --from=build /usr/local/nginx /usr/local/nginx
92-
RUN apk add --no-cache ca-certificates tzdata && \
92+
RUN apk add --no-cache ca-certificates tzdata libcap && \
93+
setcap cap_net_bind_service=ep /usr/local/nginx/sbin/nginx && \
9394
ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx
9495
ENTRYPOINT ["nginx"]
9596
CMD ["-g", "daemon off;"]

0 commit comments

Comments
 (0)