Skip to content

Commit 954e23a

Browse files
1gtmtamalsaha
andauthored
[cherry-pick] Use node:14-alpine as base image (#552) (#556)
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent 140abce commit 954e23a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Dockerfile.dbg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ LABEL org.opencontainers.image.source https://github.com/stashed/elasticsearch
3535
RUN set -x \
3636
&& apk add --update --no-cache bash ca-certificates curl
3737

38-
RUN npm install elasticdump@6.62.1 -g
38+
RUN npm config set unsafe-perm true \
39+
&& npm install elasticdump@6.62.1 -g
3940

4041
COPY --from=0 restic /bin/restic
4142
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}

Dockerfile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ LABEL org.opencontainers.image.source https://github.com/stashed/elasticsearch
3535
RUN set -x \
3636
&& apk add --update --no-cache bash ca-certificates curl
3737

38-
RUN npm install elasticdump@6.62.1 -g
38+
RUN npm config set unsafe-perm true \
39+
&& npm install elasticdump@6.62.1 -g
3940

4041
COPY --from=0 /restic /bin/restic
4142
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ BIN_PLATFORMS := $(DOCKER_PLATFORMS)
6464
OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
6565
ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
6666

67-
BASEIMAGE_PROD ?= node:8.16-alpine
68-
BASEIMAGE_DBG ?= node:8.16-alpine
67+
BASEIMAGE_PROD ?= node:14-alpine
68+
BASEIMAGE_DBG ?= node:14-alpine
6969

7070
IMAGE := $(REGISTRY)/$(BIN)
7171
VERSION_PROD := $(VERSION)

0 commit comments

Comments
 (0)