Skip to content

Commit

Permalink
remove Scratch layers (#90)
Browse files Browse the repository at this point in the history
* remove Scratch layers

* removed some whitespace lines; allow patch versions

Co-authored-by: Andrew Suderman <[email protected]>
  • Loading branch information
transient1 and Andrew Suderman authored Jun 24, 2020
1 parent b2c2f6f commit 49e7086
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,11 @@ COPY . .
RUN go get github.com/markbates/pkger/cmd/pkger
RUN VERSION=$version COMMIT=$commit make build-linux


FROM alpine:3.12.0 as alpine
FROM alpine:3.12
RUN apk --no-cache --update add ca-certificates tzdata && update-ca-certificates


FROM scratch
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine /etc/passwd /etc/passwd

USER nobody
COPY --from=build-env /go/src/github.com/fairwindsops/pluto /

WORKDIR /opt/app

ENTRYPOINT ["/pluto"]

0 comments on commit 49e7086

Please sign in to comment.