Skip to content

Commit

Permalink
Merge pull request #261 from hairyhenderson/docker-from-scratch
Browse files Browse the repository at this point in the history
Rebasing Docker images on `scratch` instead of alpine
  • Loading branch information
hairyhenderson authored Feb 18, 2018
2 parents e485091 + 89d364d commit 5d99c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN curl -fsSL -o /tmp/upx.tar.xz https://github.com/upx/upx/releases/download/v
COPY --from=build /go/src/github.com/hairyhenderson/gomplate/bin/gomplate /gomplate
RUN /tmp/upx --lzma /gomplate -o /gomplate-slim

FROM alpine:3.6 AS gomplate
FROM scratch AS gomplate

ARG BUILD_DATE
ARG VCS_REF
Expand All @@ -36,7 +36,7 @@ ENTRYPOINT [ "/gomplate" ]

CMD [ "--help" ]

FROM alpine:3.6 AS gomplate-slim
FROM scratch AS gomplate-slim

ARG BUILD_DATE
ARG VCS_REF
Expand Down

0 comments on commit 5d99c94

Please sign in to comment.