Skip to content

Commit 05a4705

Browse files
committed
Use gcr.io/distroless/static:nonroot base image
1 parent 2577f63 commit 05a4705

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Dockerfile has specific requirement to put this ARG at the beginning:
22
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
3-
ARG BUILDER_IMAGE=golang:1.23-alpine
4-
ARG BASE_IMAGE=gcr.io/distroless/base-debian10
3+
ARG BUILDER_IMAGE=golang:1.23
4+
ARG BASE_IMAGE=gcr.io/distroless/static:nonroot
55

66
## Multistage build
77
FROM ${BUILDER_IMAGE} AS builder

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ SYNCER_IMAGE_NAME := lora-syncer
3636
SYNCER_IMAGE_REPO ?= $(IMAGE_REGISTRY)/$(SYNCER_IMAGE_NAME)
3737
SYNCER_IMAGE_TAG ?= $(SYNCER_IMAGE_REPO):$(GIT_TAG)
3838

39-
BASE_IMAGE ?= gcr.io/distroless/base-debian10
40-
BUILDER_IMAGE ?= golang:1.23-alpine
39+
BASE_IMAGE ?= gcr.io/distroless/static:nonroot
40+
BUILDER_IMAGE ?= golang:1.23
4141
ifdef GO_VERSION
4242
BUILDER_IMAGE = golang:$(GO_VERSION)
4343
endif

0 commit comments

Comments
 (0)