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

Commit

Permalink
Do not use the home directory as the working dir in docker (#9834)
Browse files Browse the repository at this point in the history
* Do not create a home directory.

* Re-add -m flag
  • Loading branch information
fubhy authored and 5chdn committed Nov 27, 2018
1 parent 8514c0d commit c2d829b
Showing 1 changed file with 1 addition and 5 deletions.
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

0 comments on commit c2d829b

Please sign in to comment.