Skip to content

Commit

Permalink
remove libcap
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Apr 24, 2023
1 parent 1506db3 commit 2d66221
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ 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 libcap && \
setcap cap_net_bind_service=ep /usr/local/nginx/sbin/nginx && \
RUN apk add --no-cache ca-certificates tzdata && \
ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx
ENTRYPOINT ["nginx"]
CMD ["-g", "daemon off;"]

0 comments on commit 2d66221

Please sign in to comment.