Skip to content

Commit

Permalink
Use Debian strecth-slim as a base for the producion Docker image
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marquiz committed Sep 24, 2018
1 parent bff94eb commit f00f231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f00f231

Please sign in to comment.