File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,8 @@ COPY --from=0 restic /bin/restic
23
23
COPY --from=0 restic_{NEW_RESTIC_VER} /bin/restic_{NEW_RESTIC_VER}
24
24
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}
25
25
26
+ # Copy "nice" and "ionice".
27
+ COPY --from=0 /usr/bin/nice /bin/nice
28
+ COPY --from=0 /usr/bin/ionice /bin/ionice
29
+
26
30
ENTRYPOINT ["/{ARG_BIN}"]
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ COPY --from=0 /restic /bin/restic
23
23
COPY --from=0 /restic_{NEW_RESTIC_VER} /bin/restic_{NEW_RESTIC_VER}
24
24
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}
25
25
26
+ # Copy "nice" and "ionice".
27
+ COPY --from=0 /usr/bin/nice /bin/nice
28
+ COPY --from=0 /usr/bin/ionice /bin/ionice
29
+
26
30
# This would be nicer as `nobody:nobody` but distroless has no such entries.
27
31
USER 65535:65535
28
32
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ BIN_PLATFORMS := $(DOCKER_PLATFORMS) windows/amd64 darwin/amd64
60
60
OS := $(if $(GOOS ) ,$(GOOS ) ,$(shell go env GOOS) )
61
61
ARCH := $(if $(GOARCH ) ,$(GOARCH ) ,$(shell go env GOARCH) )
62
62
63
- BASEIMAGE_PROD ?= gcr.io/distroless/static
63
+ BASEIMAGE_PROD ?= gcr.io/distroless/base
64
64
BASEIMAGE_DBG ?= debian:stretch
65
65
66
66
IMAGE := $(REGISTRY ) /$(BIN )
You can’t perform that action at this time.
0 commit comments