-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.agent
37 lines (32 loc) · 1.14 KB
/
Dockerfile.agent
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
33
34
35
36
37
FROM datadog/agent:6.19.2
ARG NODE_VERSION=node_10.x
ARG NODE_APT_KEY=68576280
ARG YARN_APT_KEY=86E50310
COPY ["templates/*.tmpl", "/opt/templates/"]
COPY scripts/ /usr/local/bin/
RUN apt-get update \
# datadog image already has /etc/ssl/openssl.conf
# use --force-conf-old to keep it
&& apt-get install -y \
-o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" \
--no-install-recommends \
ca-certificates \
apt-transport-https \
gettext-base \
lsb-release \
gnupg \
&& export DISTRO="$(lsb_release -s -c)" \
&& envsubst < /opt/templates/500px.list.tmpl > /etc/apt/sources.list.d/500px.list \
&& apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 \
$NODE_APT_KEY \
$YARN_APT_KEY \
&& apt-get update \
&& apt-get install -y \
--no-install-recommends \
nodejs \
yarn \
&& yarn global add [email protected] \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/local/bin/bootstrap"]
CMD ["/init"]