From 4ee49f03dff10665535bcccf426bde4105652c3d Mon Sep 17 00:00:00 2001 From: Sebastian Siemssen Date: Thu, 22 Nov 2018 15:15:04 +0100 Subject: [PATCH] Do not use the home directory as the working dir in docker (#9834) * Do not create a home directory. * Re-add -m flag --- scripts/docker/hub/Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/docker/hub/Dockerfile b/scripts/docker/hub/Dockerfile index 1ac92e71b..bcc204018 100644 --- a/scripts/docker/hub/Dockerfile +++ b/scripts/docker/hub/Dockerfile @@ -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