summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Goodman <wagoodman@gmail.com>2019-11-09 10:48:19 -0500
committerAlex Goodman <wagoodman@gmail.com>2019-11-09 10:55:42 -0500
commitbfcfc54ee34b623274a91ca48379ac229b5415c2 (patch)
treecd47b06bb992fcf339c44db9d912129f50640be0
parent3fbc016826b4a1582acbb91c103ca094216a6cd7 (diff)
alpine base image & bump 0.9.1v0.9.1
-rw-r--r--.goreleaser.yml2
-rw-r--r--Dockerfile18
-rw-r--r--README.md12
3 files changed, 16 insertions, 16 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 38085b9..709fbe8 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -3,6 +3,8 @@ release:
builds:
- binary: dive
+ env:
+ - CGO_ENABLED=0
goos:
- windows
- darwin
diff --git a/Dockerfile b/Dockerfile
index 5cce526..b2a865c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,10 @@
-FROM debian:sid-slim
-RUN apt-get update && apt-get install -y \
- curl \
- libdevmapper1.02.1 \
- libgpgme11-dev \
- && rm -rf /var/lib/apt/lists/* \
- && ln -s /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 /usr/lib/libdevmapper.so.1.02
-ARG DOCKER_CLI_VERSION="19.03.1"
-RUN curl -L https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_CLI_VERSION.tgz | \
- tar -xz --strip-component=1 -C /usr/local/bin/ docker/docker
+FROM alpine:3.10
+
+ARG DOCKER_CLI_VERSION=19.03.1
+RUN wget -O- https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_CLI_VERSION}.tgz | \
+ tar -xzf - docker/docker --strip-component=1 && \
+ mv docker /usr/local/bin
+
COPY dive /usr/local/bin/
+
ENTRYPOINT ["/usr/local/bin/dive"]
diff --git a/README.md b/README.md
index 67f2345..688ac41 100644
--- a/README.md
+++ b/README.md
@@ -82,14 +82,14 @@ With valid `source` options as such:
**Ubuntu/Debian**
```bash
-wget https://github.com/wagoodman/dive/releases/download/v0.9.0/dive_0.9.0_linux_amd64.deb
-sudo apt install ./dive_0.9.0_linux_amd64.deb
+wget https://github.com/wagoodman/dive/releases/download/v0.9.1/dive_0.9.1_linux_amd64.deb
+sudo apt install ./dive_0.9.1_linux_amd64.deb
```
**RHEL/Centos**
```bash
-curl -OL https://github.com/wagoodman/dive/releases/download/v0.9.0/dive_0.9.0_linux_amd64.rpm
-rpm -i dive_0.9.0_linux_amd64.rpm
+curl -OL https://github.com/wagoodman/dive/releases/download/v0.9.1/dive_0.9.1_linux_amd64.rpm
+rpm -i dive_0.9.1_linux_amd64.rpm
```
**Arch Linux**
@@ -108,11 +108,11 @@ The above example assumes [`yay`](https://aur.archlinux.org/packages/yay/) as th
brew install dive
```
-or download the latest Darwin build from the [releases page](https://github.com/wagoodman/dive/releases/download/v0.9.0/dive_0.9.0_darwin_amd64.tar.gz).
+or download the latest Darwin build from the [releases page](https://github.com/wagoodman/dive/releases/download/v0.9.1/dive_0.9.1_darwin_amd64.tar.gz).
**Windows**
-Download the [latest release](https://github.com/wagoodman/dive/releases/download/v0.9.0/dive_0.9.0_windows_amd64.zip).
+Download the [latest release](https://github.com/wagoodman/dive/releases/download/v0.9.1/dive_0.9.1_windows_amd64.zip).
**Go tools**
Requires Go version 1.9 or higher.