From 1e57c90ebc1a4f774f5b82c63b11de0cb5b39dd4 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/