File tree Expand file tree Collapse file tree 3 files changed +7
-48
lines changed
Expand file tree Collapse file tree 3 files changed +7
-48
lines changed Original file line number Diff line number Diff line change 11FROM python:3.6.3
22
3- # Create an unprivileged user
3+ # Set up a workspace
44ENV PSHTT_HOME=/home/pshtt
5- RUN mkdir ${PSHTT_HOME}
5+ RUN mkdir ${PSHTT_HOME}
6+
7+ # Create an unprivileged user
68RUN groupadd --system pshtt \
7- && useradd --system --comment="pshtt user" --gid="pshtt" pshtt
9+ && useradd --system --comment="pshtt user" --gid="pshtt" pshtt
810
911# Install pshtt
1012COPY . ${PSHTT_HOME}
1113RUN chown -R pshtt:pshtt ${PSHTT_HOME}
1214RUN pip install --no-cache ${PSHTT_HOME}
1315
1416# Prepare to run
15- WORKDIR PSHTT_HOME
17+ WORKDIR ${ PSHTT_HOME}
1618USER pshtt:pshtt
1719ENTRYPOINT ["pshtt" ]
1820CMD ["--help" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33set -e
44set -x
55
6-
76docker build -t pshtt/cli .
87
98docker run --rm -it \
109 --name pshtt \
11- -v $( pwd) :/data \
12- ` # Change the ownership of the files (**e.g** results) to the user with id 1042 and to the group with id 1042` \
13- -e USER_ID=1042 \
14- -e GROUP_ID=1042 \
10+ -v $( pwd) :/home/pshtt \
1511 pshtt/cli $@
You can’t perform that action at this time.
0 commit comments