Skip to content

Commit

Permalink
add libcap
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Apr 23, 2023
1 parent 8f10fa7 commit 1506db3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl

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

0 comments on commit 1506db3

Please sign in to comment.