-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
32 lines (25 loc) · 884 Bytes
/
Dockerfile
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
26
27
28
29
30
31
32
ARG BASE_IMAGE_NAME=fluent/fluentd
ARG BASE_IMAGE_TAG=v1.14.5-debian-1.0
FROM ${BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}
ARG http_proxy
ARG https_proxy
ARG no_proxy
ARG apt_proxy
USER root
ENV LANG=C.UTF-8
SHELL ["/bin/bash", "-c"]
RUN set -e -x -o pipefail \
&& http_proxy=${apt_proxy:-${http_proxy}} apt-get update \
&& http_proxy=${apt_proxy:-${http_proxy}} apt-get install -y --no-install-recommends --no-install-suggests \
build-essential \
libpq-dev \
postgresql-client \
ruby-dev \
&& fluent-gem install fluent-plugin-postgresql-csvlog --no-document \
&& gem sources --clear-all \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
build-essential libpq-dev ruby-dev \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem
COPY ["fluent.conf", "/fluentd/etc/"]
USER fluent