From b100583d7d9770971f540efc0ba105d4b8c94e9a Mon Sep 17 00:00:00 2001 From: Ilya Glotov Date: Wed, 20 Dec 2017 14:51:11 +0300 Subject: [PATCH] Set runtime image base on alpine --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e17454..4f7ba20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,11 +13,11 @@ COPY . /go/src/github.com/chihaya/chihaya # Install our golang dependencies and compile our binary. RUN glide install RUN CGO_ENABLED=0 go install github.com/chihaya/chihaya/cmd/chihaya -RUN adduser -D chihaya -FROM scratch +FROM alpine:latest COPY --from=build-env /go/bin/chihaya /chihaya -COPY --from=build-env /etc/passwd /etc/passwd + +RUN adduser -D chihaya # Expose a docker interface to our binary. EXPOSE 6880 6881