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

Commit f3957b6

Browse files
Only install necessary packages
1 parent 8575408 commit f3957b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
FROM golang:1.12-alpine AS build
22
WORKDIR /go/src/github.com/factoriotools/factorio-docker-watchdog
3-
RUN apk add --no-cache alpine-sdk
3+
RUN apk add --no-cache 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 && \
10-
apk add --no-cache alpine-sdk
9+
RUN adduser -D -u 678 watchdog
1110
USER watchdog
1211
COPY --from=build /go/src/github.com/factoriotools/factorio-docker-watchdog/app /app
1312
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)