use alpine based docker image

This commit is contained in:
Alex Goodman 2019-07-27 12:19:52 -04:00
parent e4ddfb411c
commit f2b2d38622
No known key found for this signature in database
GPG Key ID: 98AF011C5C78EB7E
3 changed files with 15 additions and 2 deletions

View File

@ -14,6 +14,7 @@ builds:
dockers:
-
binary: dive
dockerfile: Dockerfile
image_templates:
- "wagoodman/dive:{{ .Tag }}"
- "wagoodman/dive:v{{ .Major }}"

View File

@ -1,3 +1,15 @@
FROM debian:stable-slim
FROM alpine:3.10
ARG DOCKER_CLI_VERSION="19.03.1"
ENV DOWNLOAD_URL="https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_CLI_VERSION.tgz"
RUN apk --update add curl \
&& mkdir -p /tmp/download \
&& curl -L $DOWNLOAD_URL | tar -xz -C /tmp/download \
&& mv /tmp/download/docker/docker /usr/local/bin/ \
&& rm -rf /tmp/download \
&& apk del curl \
&& rm -rf /var/cache/apk/*
COPY dive /
ENTRYPOINT ["/dive"]

View File

@ -12,7 +12,7 @@ run-large: build
./build/$(BIN) amir20/clashleaders:latest
build:
go build -o build/$(BIN)
CGO_ENABLED=0 go build -o build/$(BIN)
release: test-coverage validate
./.scripts/tag.sh