From 2f5492f4ec898baa5132931de1fcb351e6286b4a Mon Sep 17 00:00:00 2001 From: nmaupu Date: Fri, 30 Nov 2018 01:46:25 +0100 Subject: [PATCH] Using minideb as docker image instead of alpine --- Dockerfile.alpine | 9 --------- Dockerfile.minideb | 10 ++++++++++ Makefile | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 Dockerfile.alpine create mode 100644 Dockerfile.minideb diff --git a/Dockerfile.alpine b/Dockerfile.alpine deleted file mode 100644 index 73c0f96..0000000 --- a/Dockerfile.alpine +++ /dev/null @@ -1,9 +0,0 @@ -FROM alpine - -RUN apk update && \ - apk add ca-certificates && \ - rm -rf /var/cache/apk/* && \ - update-ca-certificates - -COPY tmp/freenas-provisioner / -ENTRYPOINT ["/freenas-provisioner"] diff --git a/Dockerfile.minideb b/Dockerfile.minideb new file mode 100644 index 0000000..9ddb734 --- /dev/null +++ b/Dockerfile.minideb @@ -0,0 +1,10 @@ +FROM bitnami/minideb:stretch + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y ca-certificates && \ + update-ca-certificates && \ + apt-get clean + +COPY tmp/freenas-provisioner / +ENTRYPOINT ["/freenas-provisioner"] diff --git a/Makefile b/Makefile index 98875ee..d94f39a 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ $(BIN): image: tmp check-docker-hub wget -O tmp/freenas-provisioner https://github.com/nmaupu/freenas-provisioner/releases/download/v$(IMAGE_VERSION)/freenas-provisioner_linux-amd64 && \ chmod +x tmp/freenas-provisioner - docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) -f Dockerfile.alpine . + docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) -f Dockerfile.minideb . .PHONY: tag tag: image