File tree 3 files changed +7
-48
lines changed
3 files changed +7
-48
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.6.3
2
2
3
- # Create an unprivileged user
3
+ # Set up a workspace
4
4
ENV PSHTT_HOME=/home/pshtt
5
- RUN mkdir ${PSHTT_HOME}
5
+ RUN mkdir ${PSHTT_HOME}
6
+
7
+ # Create an unprivileged user
6
8
RUN groupadd --system pshtt \
7
- && useradd --system --comment="pshtt user" --gid="pshtt" pshtt
9
+ && useradd --system --comment="pshtt user" --gid="pshtt" pshtt
8
10
9
11
# Install pshtt
10
12
COPY . ${PSHTT_HOME}
11
13
RUN chown -R pshtt:pshtt ${PSHTT_HOME}
12
14
RUN pip install --no-cache ${PSHTT_HOME}
13
15
14
16
# Prepare to run
15
- WORKDIR PSHTT_HOME
17
+ WORKDIR ${ PSHTT_HOME}
16
18
USER pshtt:pshtt
17
19
ENTRYPOINT ["pshtt" ]
18
20
CMD ["--help" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
set -e
4
4
set -x
5
5
6
-
7
6
docker build -t pshtt/cli .
8
7
9
8
docker run --rm -it \
10
9
--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 \
15
11
pshtt/cli $@
You can’t perform that action at this time.
0 commit comments