Do not use the home directory as the working dir in docker (#9834)

* Do not create a home directory.

* Re-add -m flag
This commit is contained in:
Sebastian Siemssen 2018-11-22 15:15:04 +01:00 committed by Tomasz Drwięga
parent 52d5278a62
commit 4ee49f03df
1 changed files with 1 additions and 5 deletions

View File

@ -20,12 +20,8 @@ RUN groupadd -g 1000 parity \
USER parity
WORKDIR /home/parity
ENV PATH "~/bin:${PATH}"
#add TARGET to docker image
COPY artifacts/x86_64-unknown-linux-gnu/$TARGET ./bin/$TARGET
COPY artifacts/x86_64-unknown-linux-gnu/$TARGET /bin/$TARGET
# Build a shell script because the ENTRYPOINT command doesn't like using ENV
RUN echo "#!/bin/bash \n ${TARGET} \$@" > ./entrypoint.sh