Skip to content

Commit

Permalink
Merge pull request #228 from Cryptophobia/master
Browse files Browse the repository at this point in the history
fix(Dockerfile): add tdnf clean commands
  • Loading branch information
Cryptophobia authored Jun 29, 2021
2 parents 2bba75e + d403c91 commit 0ed7fd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ FROM photon:4.0 AS rubybuild
ARG RUBY_PATH
ARG RUBY_VERSION
ARG RUBYOPT
RUN tdnf upgrade -y && \
RUN tdnf clean all && \
tdnf upgrade -y && \
tdnf erase -y toybox && \
tdnf install -y \
bzip2 \
Expand All @@ -33,7 +34,8 @@ RUN tdnf upgrade -y && \
openssl-devel \
systemd \
net-tools \
git
git && \
tdnf clean all

# Copy Gemfile.lock to pin versions further:
COPY basegems/Gemfile Gemfile
Expand Down Expand Up @@ -123,7 +125,8 @@ RUN mkdir -p /fluentd/log /fluentd/etc /fluentd/plugins /usr/local/bundle/bin/ \
&& tdnf clean all \
&& gem sources --clear-all \
&& ln -s $(which fluentd) /usr/local/bundle/bin/fluentd \
&& tdnf remove -y $buildDeps
&& tdnf remove -y $buildDeps \
&& tdnf clean all

# Make sure fluentd picks jemalloc 3.6.0 lib as default
ENV LD_PRELOAD="/usr/lib/libjemalloc.so"
Expand Down

0 comments on commit 0ed7fd9

Please sign in to comment.