-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (25 loc) · 1.28 KB
/
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
# https://docs.fastly.com/en/ngwaf/installing-the-agent-on-ubuntu
# https://docs.fastly.com/en/ngwaf/installing-the-agent-on-debian
ARG BASE_IMAGE
# we're allowing the CI process to tag our image explicitly
# hadolint ignore=DL3006
FROM docker.io/library/${BASE_IMAGE}
LABEL org.opencontainers.image.source="https://github.com/thermondo/sigsci-container"
ARG DEBIAN_FRONTEND=noninteractive
SHELL [ "/bin/bash", "-Eeuo", "pipefail", "-c" ]
# sometimes we're working with a debian base image, sometimes we're working with an ubuntu base
# image. this requires customizing our APT source a little bit, which we can do via build args.
ARG APT_SOURCE
# Don't want to pin apt package versions (yet... TODO perhaps)
# hadolint ignore=DL3008
RUN \
apt-get update; \
apt-get install --yes --no-install-recommends apt-transport-https curl gnupg ca-certificates; \
curl --silent --fail --show-error --location https://apt.signalsciences.net/release/gpgkey | gpg --dearmor -o /usr/share/keyrings/sigsci.gpg; \
echo "deb [signed-by=/usr/share/keyrings/sigsci.gpg] ${APT_SOURCE}" > /etc/apt/sources.list.d/sigsci-release.list; \
apt-get update; \
apt-get install --yes --no-install-recommends sigsci-agent; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*;
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]