Skip to content

Commit

Permalink
Compile in bookworm and update alpine to 3.19 (#97)
Browse files Browse the repository at this point in the history
* Update alpine to 3.19

* Attempt to build in bookworm

* Update changelog entry to note build image change
  • Loading branch information
andyasp authored Dec 19, 2023
1 parent 142a298 commit fe4e0d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## main / unreleased

* [ENHANCEMENT] Expose pprof endpoint for profiling. #109
* [ENHANCEMENT] Change Docker build image to `golang:1.21-bookworm` and update base image to `alpine:3.19`. #97

## v0.10.1

Expand Down
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
FROM golang:1.21-alpine3.18 AS build
FROM golang:1.21-bookworm AS build

ARG TARGETOS
ARG TARGETARCH
ARG BUILDTARGET=rollout-operator

RUN apk add --no-cache build-base git

COPY . /src/rollout-operator
WORKDIR /src/rollout-operator
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make ${BUILDTARGET}

FROM alpine:3.18
RUN apk add --no-cache ca-certificates
FROM alpine:3.19
RUN apk add --no-cache ca-certificates gcompat

COPY --from=build /src/rollout-operator/rollout-operator /bin/rollout-operator
ENTRYPOINT [ "/bin/rollout-operator" ]
Expand Down
2 changes: 1 addition & 1 deletion integration/mock-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18
FROM alpine:3.19

COPY mock-service /bin/mock-service
ENTRYPOINT [ "/bin/mock-service" ]
Expand Down

0 comments on commit fe4e0d7

Please sign in to comment.