generated from falcosecurity/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Dockerfile): replace alpine base images with debian-based ones
Signed-off-by: Leonardo Di Giovanna <[email protected]> Co-authored-by: Aldo Lacuku <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM golang:1.23.1-alpine3.20 AS builder | ||
FROM golang:1.23.1-bookworm AS builder | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN apk add --no-cache make bash | ||
RUN apt-get -y update && apt-get install -y make bash && apt clean -y && rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /event-generator | ||
|
||
|
@@ -11,10 +11,13 @@ COPY . . | |
RUN make | ||
|
||
|
||
FROM alpine:3.20 | ||
FROM debian:bookworm-slim | ||
|
||
RUN apk add --no-cache sudo polkit libcap e2fsprogs-extra openssh nmap netcat-openbsd wget curl | ||
RUN apt-get -y update && \ | ||
apt-get -y install policykit-1 libcap-dev e2fsprogs openssh-client openssh-server nmap netcat-openbsd wget \ | ||
curl && \ | ||
apt clean -y && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=builder /event-generator/event-generator /bin/event-generator | ||
COPY --from=builder --chmod=0755 /event-generator/event-generator /bin/event-generator | ||
|
||
ENTRYPOINT ["/bin/event-generator"] |