From d78bafd7299d5b83dbd771cf2f2c0ced712b3953 Mon Sep 17 00:00:00 2001 From: Leopere Date: Tue, 2 Oct 2018 18:08:07 -0400 Subject: [PATCH] Adjusting some logic with command execution order --- lbrycrd/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lbrycrd/Dockerfile b/lbrycrd/Dockerfile index 89b359d..5236d35 100644 --- a/lbrycrd/Dockerfile +++ b/lbrycrd/Dockerfile @@ -7,7 +7,9 @@ RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash --disabled-password --home apt-get update && \ apt-get -y install unzip wget && \ apt-get autoclean -y && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* && \ + mkdir -p /etc/lbrycrdd && \ + chown -R 1000:1000 /etc/lbrycrdd RUN wget -O /usr/bin/lbrycrd-linux.zip https://github.com/lbryio/lbrycrd/releases/download/v0.12.2.2/lbrycrd-linux.zip && \ cd /usr/bin/ && \ @@ -20,8 +22,7 @@ ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint USER lbrycrdd -RUN mkdir -p /data/lbrycrdd && \ - mkdir -p /etc/lbrycrdd +RUN mkdir -p /data/lbrycrdd VOLUME /data/ VOLUME /etc/lbrycrdd/