Skip to content

Commit 042f1f7

Browse files
authored
Change base image from bookworm to alpine (#672)
[IG-23261](https://iguazio.atlassian.net/browse/IG-23261) To avoid present and future security vulnerabilities.
1 parent 552493f commit 042f1f7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ frames:
130130
--env GOARCH=$(GOARCH) \
131131
--env FRAMES_TAG=$(FRAMES_TAG) \
132132
--platform=linux/amd64
133-
golang:1.23-bookworm \
133+
golang:1.23-alpine \
134134
make frames-bin
135135

136136
PHONY: gofmt

cmd/framesd/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@
1818
# You can also use -e V3IO_GRPC_PORT=9999 and -e V3IO_HTTP_PORT=9998 to set ports
1919
# (don't forget to update the -p accordingly)
2020

21-
FROM golang:1.23-bookworm AS build
21+
FROM --platform=linux/amd64 golang:1.23-alpine AS build
2222

2323
WORKDIR /frames
2424
COPY . .
2525
ARG FRAMES_VERSION=unknown
2626
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-X main.Version=${FRAMES_VERSION}" ./cmd/framesd
2727
RUN cp framesd /usr/local/bin
2828

29-
FROM --platform=linux/amd64 debian:jessie-slim
30-
COPY --from=build /usr/local/bin/framesd /usr/local/bin
31-
3229
VOLUME /etc/framesd
3330
ENV V3IO_GRPC_PORT=8081
3431
ENV V3IO_HTTP_PORT=8080

0 commit comments

Comments
 (0)