From 46f85f520a4f540a6680c6eb4d5cee61bbe44486 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sun, 17 Sep 2017 21:49:35 +0100 Subject: [PATCH] Use Alpine base image --- Dockerfile | 9 ++++----- bin/init | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 053c6ae..a9f359d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ -FROM debian:stable-slim +FROM alpine:3.6 MAINTAINER Luke Childs ADD ./bin /usr/local/bin RUN chmod a+x /usr/local/bin/* && \ - apt-get update && \ - apt-get install -y --no-install-recommends curl ca-certificates unzip && \ + apk add --no-cache curl unzip && \ curl -L https://github.com/vertcoin/vertcoin/releases/download/v0.11.1.0/vertcoin-v0.11.1.0-linux-64bit.zip --output /tmp/prebuilt.zip && \ unzip /tmp/prebuilt.zip -d /tmp && \ mv /tmp/vertcoind /usr/local/bin && \ - apt-get purge -y curl ca-certificates unzip && \ - apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + apk del curl unzip && \ + rm -rf /tmp/* /var/tmp/* VOLUME ["/data"] ENV HOME /data diff --git a/bin/init b/bin/init index db4d6fb..d0e5c0a 100644 --- a/bin/init +++ b/bin/init @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh DATA_DIR=/data CONF=${DATA_DIR}/vertcoin.conf