Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit 20a3d6e

Browse files
Optimize apk add, install git in final image
1 parent 500d3f3 commit 20a3d6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
FROM golang:1.12-alpine AS build
22
WORKDIR /go/src/github.com/factoriotools/factorio-docker-watchdog
3-
RUN apk add --no-cache g++ git
3+
RUN apk add --no-cache --no-progress g++ git
44
COPY . .
55
RUN go get ./... && \
66
go build -a -installsuffix cgo -o app .
77

88
FROM alpine
9-
RUN adduser -D -u 678 watchdog
9+
RUN adduser -D -u 678 watchdog && \
10+
apk add --no-cache --no-progress git
1011
USER watchdog
1112
COPY --from=build /go/src/github.com/factoriotools/factorio-docker-watchdog/app /app
1213
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)