-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (22 loc) · 778 Bytes
/
Dockerfile
File metadata and controls
25 lines (22 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine:3.4
MAINTAINER Alex Kern <alex@pavlov.ai>
RUN apk --no-cache --update add \
build-base \
ca-certificates \
ruby \
ruby-irb \
ruby-dev && \
echo 'gem: --no-document' >> /etc/gemrc && \
gem install oj && \
gem install json && \
gem install fluentd -v 0.14.9 && \
gem install fluent-plugin-s3 && \
gem install fluent-plugin-loggly && \
gem install fluent-plugin-kubernetes_metadata_filter && \
apk del build-base ruby-dev && \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* && \
mkdir -p /etc/fluent
WORKDIR /etc/fluent
COPY fluent.conf .
EXPOSE 24220
CMD [ "fluentd", "-c", "fluent.conf" ]