Browse Source

Run as root

v1.1.1
Luke Childs 7 years ago
parent
commit
faf8b70fe7
  1. 10
      Dockerfile

10
Dockerfile

@ -1,8 +1,6 @@
FROM python:3.6-alpine3.6
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
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

Loading…
Cancel
Save