From faf8b70fe797ae4ee7fb13acfac242c311b9cb69 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 19 Sep 2017 22:06:15 +0100 Subject: [PATCH] Run as root --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0673c7e..d0e6c37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM python:3.6-alpine3.6 LABEL maintainer="Luke Childs " -VOLUME ["/data"] - COPY ./VERSION /tmp RUN VERSION=$(cat /tmp/VERSION) && \ @@ -10,17 +8,15 @@ RUN VERSION=$(cat /tmp/VERSION) && \ apk add --no-cache git build-base && \ apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing leveldb-dev && \ pip install aiohttp pylru plyvel && \ - git clone -b $VERSION https://github.com/kyuupichan/electrumx.git && \ + git clone https://github.com/lukechilds/electrumx.git && \ cd electrumx && \ python setup.py install && \ apk del git build-base && \ rm -rf /tmp/* -RUN addgroup -S electrumx && adduser -S -g electrumx electrumx && \ - chown -R electrumx:electrumx /data - -USER electrumx +VOLUME ["/data"] ENV HOME /data +ENV ALLOW_ROOT 1 ENV DB_DIRECTORY /data WORKDIR /data