Skip to content

Commit

Permalink
chore(Dockerfile): replace alpine base images with debian-based ones
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Giovanna <[email protected]>
Co-authored-by: Aldo Lacuku <[email protected]>
  • Loading branch information
2 people authored and poiana committed Feb 18, 2025
1 parent 397d269 commit 77f66fc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
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

Expand All @@ -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"]

0 comments on commit 77f66fc

Please sign in to comment.