Skip to content

Commit efead1b

Browse files
committed
Migrate build commands to debian
1 parent 597f0bb commit efead1b

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

Dockerfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@ FROM fluent/fluentd:${FLUENTD_VERSION}
33

44
USER root
55

6-
RUN apk add --no-cache --update --virtual .build-deps \
7-
sudo build-base ruby-dev && \
6+
#RUN apk add --no-cache --update --virtual .build-deps \
7+
# sudo build-base ruby-dev && \
8+
# fluent-gem install fluent-plugin-opensearch && \
9+
# fluent-gem install fluent-plugin-wodby --version=">=0.1.8" && \
10+
# gem sources --clear-all && \
11+
# apk del .build-deps && \
12+
# rm -rf /home/fluent/.gem/ruby/2.5.0/cache/*.gem
13+
RUN apt update && \
14+
apt install -y ruby-dev && \
815
fluent-gem install fluent-plugin-opensearch && \
9-
fluent-gem install fluent-plugin-wodby --version=">=0.1.8" && \
10-
gem sources --clear-all && \
11-
apk del .build-deps && \
12-
rm -rf /home/fluent/.gem/ruby/2.5.0/cache/*.gem
16+
fluent-gem install fluent-plugin-wodby && \
17+
apt purge -y ruby-dev && \
18+
apt autoremove --purge -y && \
19+
rm -rf /var/lib/apt/*
1320

1421
ENV FLUENT_OPENSEARCH_HOST=opensearch
1522
ENV FLUENT_OPENSEARCH_PORT=9200

0 commit comments

Comments
 (0)