-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (33 loc) · 1.26 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ARG KOYEB_CLI_VERSION=latest
FROM koyeb/koyeb-cli:${KOYEB_CLI_VERSION} AS cli
ARG KOYEB_CLI_VERSION=latest
LABEL com.koyeb.cli-version=${KOYEB_CLI_VERSION}
FROM timberio/vector:latest-distroless-static AS vector
FROM debian:bookworm
ARG S6_OVERLAY_VERSION=3.2.0.0
LABEL com.koyeb.s6-version=${S6_OVERLAY_VERSION}}
ENV VECTOR_CONFIG_DIR=/etc/vector
RUN apt update \
&& apt install -y \
ca-certificates \
xz-utils \
git \
gh \
curl \
&& rm -rf /var/lib/apt/lists/*
# install s6 init
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
# copy the koyeb-cli
COPY --from=cli /koyeb /usr/bin/koyeb
# copy vector and related files
COPY --from=vector /usr/local/bin/vector /usr/bin/vector
COPY --from=vector /etc/vector /etc/vector
COPY --from=vector /var/lib/vector /var/lib/vector
COPY koyeb-source.toml /etc/vector/koyeb-source.toml
COPY sink-console.toml /root
RUN rm /etc/vector/vector.*
COPY ./s6-overlay /etc/s6-overlay/
ENTRYPOINT ["/init"]