Skip to content

Commit

Permalink
Add strip
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Dmitriev committed Feb 19, 2024
1 parent 512f41e commit 3ed5e49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN addgroup -S wallarm && \
adduser -S -D -G wallarm -h /opt/wallarm wallarm && \
apk update && \
apk upgrade && \
apk add curl bash socat logrotate libgcc \
apk add curl bash socat logrotate libgcc binutils \
nginx=~$NGINX_VERSION \
nginx-mod-http-perl=~$NGINX_VERSION \
nginx-mod-stream=~$NGINX_VERSION \
Expand All @@ -48,6 +48,7 @@ RUN addgroup -S wallarm && \
RUN curl -sL https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERISON}/gomplate_linux-${TARGETARCH} \
-o /usr/local/bin/gomplate && \
chmod 755 /usr/local/bin/gomplate && \
strip /usr/local/bin/gomplate && \
gomplate -v

# Create symlinks to redirect nginx logs to stdout and stderr
Expand Down Expand Up @@ -80,7 +81,7 @@ RUN apk add --no-cache libcap && \
setcap -v cap_net_bind_service=+ep /opt/wallarm/usr/bin/tarantool && \
setcap cap_net_bind_service=+ep /usr/sbin/nginx && \
setcap -v cap_net_bind_service=+ep /usr/sbin/nginx && \
apk del libcap
apk del libcap binutils curl

EXPOSE 80 443
USER wallarm
Expand Down

0 comments on commit 3ed5e49

Please sign in to comment.