Skip to content

Commit

Permalink
Delete apk index from alpine image
Browse files Browse the repository at this point in the history
Signed-off-by: Orgad Shaneh <[email protected]>
  • Loading branch information
orgads authored and kenhys committed Dec 18, 2023
1 parent 32a8662 commit 4f5f7a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.template.erb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ RUN apt-get update \
<% if is_alpine %>
&& gem install bigdecimal -v 1.4.4 \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/* \
<% else %>
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
&& wget -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/v$TINI_VERSION/tini-$dpkgArch" \
Expand Down
1 change: 1 addition & 0 deletions v1.16/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RUN apk update \
&& gem install fluentd -v 1.16.3 \
&& gem install bigdecimal -v 1.4.4 \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/* \
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem /usr/lib/ruby/gems/3.*/gems/fluentd-*/test

RUN addgroup -S fluent && adduser -S -G fluent fluent \
Expand Down

0 comments on commit 4f5f7a5

Please sign in to comment.