File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.24-bookworm AS build
2
-
3
2
WORKDIR /pikolo
4
3
5
4
RUN apt-get update -y \
@@ -11,26 +10,12 @@ RUN go mod download
11
10
COPY . .
12
11
RUN env CGO_ENABLED=0 go build -ldflags="-s -w"
13
12
14
- FROM debian:bookworm-20241223-slim
15
-
16
- # Update package lists and upgrade existing packages
17
- RUN apt-get update && apt-get upgrade -y
18
-
19
- # Install packages required for the base image
20
- RUN apt-get install -y ca-certificates busybox \
21
- && ln -s /bin/busybox /usr/bin/[[
22
-
23
- # Clean up the package cache to reduce image size
24
- RUN apt-get clean && rm -rf /var/lib/apt/lists/*
25
-
26
- COPY --from=build /pikolo/pikolo /usr/local/bin
27
- COPY VERSION /VERSION
28
-
29
- LABEL io.codefresh.engine="true"
30
-
13
+ FROM debian:bookworm-20250407-slim
31
14
RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu
32
-
33
15
USER cfu
34
16
17
+ COPY --from=build --chown=cfu:cfu /pikolo/pikolo /usr/local/bin
18
+ COPY --chown=cfu:cfu VERSION /VERSION
19
+
35
20
ENTRYPOINT ["pikolo" ]
36
21
CMD [ "--help" ]
Original file line number Diff line number Diff line change 1
- 0.14.3
1
+ 0.14.4
You can’t perform that action at this time.
0 commit comments