Skip to content

Commit ba1c501

Browse files
authored
chore: don't use 'apk update' or 'apk upgrade' before 'apk ad --no-cache' (#41)
1 parent 9f2fd75 commit ba1c501

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

system-test/Dockerfile.node10-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM golang:1.12-alpine as builder
2-
RUN apk update && apk upgrade && apk add --no-cache git
2+
RUN apk add --no-cache git
33
WORKDIR /root/
44
RUN go get github.com/google/pprof
55

@@ -8,7 +8,7 @@ FROM node:10-alpine
88

99
ARG ADDITIONAL_PACKAGES
1010

11-
RUN apk update && apk upgrade && apk add --no-cache bash $ADDITIONAL_PACKAGES
11+
RUN apk add --no-cache bash $ADDITIONAL_PACKAGES
1212
WORKDIR /root/
1313
COPY --from=0 /go/bin/pprof /bin
1414
RUN chmod a+x /bin/pprof

system-test/Dockerfile.node11-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM golang:1.12-alpine as builder
2-
RUN apk update && apk upgrade && apk add --no-cache git
2+
RUN apk add --no-cache git
33
WORKDIR /root/
44
RUN go get github.com/google/pprof
55

@@ -8,7 +8,7 @@ FROM node:11-alpine
88

99
ARG ADDITIONAL_PACKAGES
1010

11-
RUN apk update && apk upgrade && apk add --no-cache bash $ADDITIONAL_PACKAGES
11+
RUN apk add --no-cache bash $ADDITIONAL_PACKAGES
1212
WORKDIR /root/
1313
COPY --from=0 /go/bin/pprof /bin
1414
RUN chmod a+x /bin/pprof

system-test/Dockerfile.node6-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM golang:1.12-alpine as builder
2-
RUN apk update && apk upgrade && apk add --no-cache git
2+
RUN apk add --no-cache git
33
WORKDIR /root/
44
RUN go get github.com/google/pprof
55

@@ -8,7 +8,7 @@ FROM node:6-alpine
88

99
ARG ADDITIONAL_PACKAGES
1010

11-
RUN apk update && apk upgrade && apk add --no-cache bash $ADDITIONAL_PACKAGES
11+
RUN apk add --no-cache bash $ADDITIONAL_PACKAGES
1212
WORKDIR /root/
1313
COPY --from=0 /go/bin/pprof /bin
1414
RUN chmod a+x /bin/pprof

system-test/Dockerfile.node8-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM golang:1.12-alpine as builder
2-
RUN apk update && apk upgrade && apk add --no-cache git
2+
RUN apk add --no-cache git
33
WORKDIR /root/
44
RUN go get github.com/google/pprof
55

@@ -8,7 +8,7 @@ FROM node:8-alpine
88

99
ARG ADDITIONAL_PACKAGES
1010

11-
RUN apk update && apk upgrade && apk add --no-cache bash $ADDITIONAL_PACKAGES
11+
RUN apk add --no-cache bash $ADDITIONAL_PACKAGES
1212
WORKDIR /root/
1313
COPY --from=0 /go/bin/pprof /bin
1414
RUN chmod a+x /bin/pprof

0 commit comments

Comments
 (0)