Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

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

Merged
merged 2 commits into from
Nov 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions scripts/docker/hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down