Skip to content

Commit 862edfb

Browse files
committed
fix(docker): fixed small issues in the new images.
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent 1618e5d commit 862edfb

File tree

2 files changed

+19
-26
lines changed

2 files changed

+19
-26
lines changed

docker/falco-debian/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV VERSION_BUCKET=${VERSION_BUCKET}
1414
ENV HOST_ROOT /host
1515
ENV HOME /root
1616

17-
RUN apt-get -y update && apt-get -y install ca-certificates curl jq libelf1 ca-certificates \
17+
RUN apt-get -y update && apt-get -y install ca-certificates curl jq libelf1 ca-certificates gnupg2 \
1818
&& apt clean -y && rm -rf /var/lib/apt/lists/*
1919

2020
WORKDIR /
@@ -29,6 +29,6 @@ RUN curl -s https://falco.org/repo/falcosecurity-packages.asc | apt-key add - \
2929
# Falcoctl is not included here.
3030
RUN rm -rf /usr/bin/falcoctl /etc/falcoctl/
3131

32-
RUN sed -e -i 's/time_format_iso_8601: false/time_format_iso_8601: true/' < /etc/falco/falco.yaml
32+
RUN sed -i -e 's/time_format_iso_8601: false/time_format_iso_8601: true/' /etc/falco/falco.yaml
3333

34-
CMD ["/usr/bin/falco"]
34+
CMD ["/usr/bin/falco"]

docker/falco/Dockerfile

+16-23
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
FROM cgr.dev/chainguard/wolfi-base as builder
1+
FROM cgr.dev/chainguard/wolfi-base
2+
3+
LABEL maintainer="[email protected]"
4+
LABEL org.opencontainers.image.source="https://github.com/falcosecurity/falco"
5+
6+
LABEL usage="docker run -i -t --privileged -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro --name NAME IMAGE"
7+
# NOTE: for the "least privileged" use case, please refer to the official documentation
28

39
ARG FALCO_VERSION
410
ARG VERSION_BUCKET=bin
511

612
ENV FALCO_VERSION=${FALCO_VERSION}
713
ENV VERSION_BUCKET=${VERSION_BUCKET}
14+
ENV HOST_ROOT /host
15+
ENV HOME /root
816

9-
RUN apk update && apk add curl ca-certificates jq libelf
17+
RUN apk update && apk add curl ca-certificates jq libelf libstdc++
1018

1119
WORKDIR /
1220

@@ -16,28 +24,13 @@ RUN FALCO_VERSION_URLENCODED=$(echo -n ${FALCO_VERSION}|jq -sRr @uri) && \
1624
tar -xvf falco.tar.gz && \
1725
rm -f falco.tar.gz && \
1826
mv falco-${FALCO_VERSION}-$(uname -m) falco && \
19-
rm -rf /falco/usr/src/falco-*
27+
rm -rf /falco/usr/src/falco-* && \
28+
cp -r /falco/* / && \
29+
rm -rf /falco
2030

21-
RUN sed -e 's/time_format_iso_8601: false/time_format_iso_8601: true/' < /falco/etc/falco/falco.yaml > /falco/etc/falco/falco.yaml.new \
22-
&& mv /falco/etc/falco/falco.yaml.new /falco/etc/falco/falco.yaml
31+
RUN sed -i -e 's/time_format_iso_8601: false/time_format_iso_8601: true/' /etc/falco/falco.yaml
2332

2433
# Falcoctl is not included here.
25-
RUN rm -rf /falco/usr/bin/falcoctl /falco/etc/falcoctl/
26-
27-
FROM cgr.dev/chainguard/wolfi-base
28-
29-
LABEL maintainer="[email protected]"
30-
LABEL org.opencontainers.image.source="https://github.com/falcosecurity/falco"
31-
32-
LABEL usage="docker run -i -t --privileged -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro --name NAME IMAGE"
33-
# NOTE: for the "least privileged" use case, please refer to the official documentation
34-
35-
RUN apk update && apk add curl ca-certificates jq libelf
36-
37-
ENV HOST_ROOT /host
38-
ENV HOME /root
39-
40-
USER root
41-
COPY --from=builder /falco /
34+
RUN rm -rf /usr/bin/falcoctl /etc/falcoctl/
4235

43-
CMD ["/usr/bin/falco"]
36+
CMD ["/usr/bin/falco"]

0 commit comments

Comments
 (0)