Make sure user owns Downloads dir

This commit is contained in:
Henrik Jonsson 2016-05-08 17:58:14 +02:00
parent 43058c89d0
commit 7747b85ca7

View File

@ -37,7 +37,9 @@ RUN curl --fail -O -sSL ${RELEASE_URL} && \
gpg --verify ${RELEASE_FILE}.asc && \ gpg --verify ${RELEASE_FILE}.asc && \
sha256sum -c sha256sums-unsigned-build.txt && \ sha256sum -c sha256sums-unsigned-build.txt && \
tar --strip-components=1 -vxJf ${RELEASE_FILE} && \ tar --strip-components=1 -vxJf ${RELEASE_FILE} && \
rm -v ${RELEASE_FILE}* rm -v ${RELEASE_FILE}* && \
mkdir /usr/local/bin/Browser/Downloads && \
chown -R user:user /usr/local/bin/Browser/Downloads
WORKDIR /usr/local/bin/Browser/Downloads WORKDIR /usr/local/bin/Browser/Downloads
USER user USER user