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:
parent
52d5278a62
commit
4ee49f03df
@ -20,12 +20,8 @@ RUN groupadd -g 1000 parity \
|
|||||||
|
|
||||||
USER parity
|
USER parity
|
||||||
|
|
||||||
WORKDIR /home/parity
|
|
||||||
|
|
||||||
ENV PATH "~/bin:${PATH}"
|
|
||||||
|
|
||||||
#add TARGET to docker image
|
#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
|
# Build a shell script because the ENTRYPOINT command doesn't like using ENV
|
||||||
RUN echo "#!/bin/bash \n ${TARGET} \$@" > ./entrypoint.sh
|
RUN echo "#!/bin/bash \n ${TARGET} \$@" > ./entrypoint.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user