1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Use Debian strecth-slim as a base for the producion Docker image

To cut the image size further, down to about 75MB. We use Debian
strecth-slim as the base for the production image as golang docker
images use stretch as their base.
This commit is contained in:
Markus Lehtonen 2018-05-28 15:41:32 +03:00
parent bff94eb107
commit f00f231c60

View file

@ -31,7 +31,7 @@ RUN go test .
# Create production image for running node feature discovery
FROM golang:1.8
FROM debian:stretch-slim
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /usr/local/lib /usr/local/lib