Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM golang:1.23.8-bullseye AS builder
RUN apt update && apt install -y libsystemd-dev

RUN apt-get update \
&& apt-get install -y --no-install-recommends libsystemd-dev \
&& rm -rf /var/lib/apt/lists/*
Comment thread
mayankpande88 marked this conversation as resolved.
WORKDIR /tmp/src
COPY go.mod .
COPY go.sum .
Expand All @@ -8,6 +11,10 @@ COPY . .
ARG VERSION=unknown
RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-extldflags='-Wl,-z,lazy' -X 'github.com/coroot/coroot-node-agent/flags.Version=${VERSION}'" -o coroot-node-agent .

RUN apt-get purge -y python3 python3-pip python3-setuptools python3-urllib3 \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
Comment thread
mayankpande88 marked this conversation as resolved.

FROM registry.access.redhat.com/ubi9/ubi

ARG VERSION=unknown
Expand Down