Skip to content

Commit

Permalink
Change base image from bookworm to alpine (#672)
Browse files Browse the repository at this point in the history
[IG-23261](https://iguazio.atlassian.net/browse/IG-23261)

To avoid present and future security vulnerabilities.
  • Loading branch information
gtopper authored Jan 20, 2025
1 parent 552493f commit 042f1f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ frames:
--env GOARCH=$(GOARCH) \
--env FRAMES_TAG=$(FRAMES_TAG) \
--platform=linux/amd64
golang:1.23-bookworm \
golang:1.23-alpine \
make frames-bin

PHONY: gofmt
Expand Down
5 changes: 1 addition & 4 deletions cmd/framesd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@
# You can also use -e V3IO_GRPC_PORT=9999 and -e V3IO_HTTP_PORT=9998 to set ports
# (don't forget to update the -p accordingly)

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

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

FROM --platform=linux/amd64 debian:jessie-slim
COPY --from=build /usr/local/bin/framesd /usr/local/bin

VOLUME /etc/framesd
ENV V3IO_GRPC_PORT=8081
ENV V3IO_HTTP_PORT=8080
Expand Down

0 comments on commit 042f1f7

Please sign in to comment.