File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends python-setuptoo
13
13
# And the pip packages including pipeline-utilities and im-pipelines-utils-rdkit
14
14
RUN pip install im-pipelines-utils==2.2.* im-pipelines-utils-rdkit==1.4.*
15
15
16
- USER obabel
17
-
18
16
# The CMD is simply to run 'execute' in the WORKDIR.
19
17
# The user would normally mount a volume with their own execute
20
18
# script in it and then set the WORKDIR to the directory it's in.
@@ -25,7 +23,10 @@ USER obabel
25
23
# which can be defined with the docker 'pipeline' build argument.
26
24
ARG pipeline=informaticsmatters/pipelines-obabel:latest
27
25
ENV PIPELINE=$pipeline
28
- WORKDIR /home/obable
29
- COPY --chown=obabel:0 execute ./
30
- RUN chmod +x ./execute
26
+ WORKDIR /home/obabel
27
+ COPY execute ./
28
+ RUN chown obabel:0 ./execute && \
29
+ chmod +x ./execute
31
30
CMD ["./execute"]
31
+
32
+ USER obabel
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ WORKDIR /usr/local/pli
11
11
RUN make
12
12
13
13
RUN useradd -u 1001 -g 0 -m pli
14
- USER 1001
15
14
16
15
WORKDIR /home/pli
17
16
ENV PLI_DIR /usr/local/pli
@@ -26,6 +25,9 @@ ENV PLI_DIR /usr/local/pli
26
25
# which can be defined with the docker 'pipeline' build argument.
27
26
ARG pipeline=informaticsmatters/pli:latest
28
27
ENV PIPELINE=$pipeline
29
- COPY --chown=1001:0 execute ./
30
- RUN chmod +x ./execute
28
+ COPY execute ./
29
+ RUN chown 1001:0 ./execute && \
30
+ chmod +x ./execute
31
31
CMD ["./execute"]
32
+
33
+ USER 1001
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ RUN wget https://sourceforge.net/projects/opengrowth/files/SMoG2016.tar.gz/downl
18
18
ARG USERID=1001
19
19
20
20
RUN useradd -u $USERID -g 0 -m smog
21
- USER $USERID
22
21
23
22
# The CMD is simply to run 'execute' in the WORKDIR.
24
23
# The user would normally mount a volume with their own execute
@@ -31,6 +30,9 @@ USER $USERID
31
30
ARG pipeline=informaticsmatters/smog:latest
32
31
ENV PIPELINE=$pipeline
33
32
WORKDIR /home/smog
34
- COPY --chown=smog:0 execute ./
35
- RUN chmod +x ./execute
33
+ COPY execute ./
34
+ RUN chown $USERID:0 ./execute && \
35
+ chmod +x ./execute
36
36
CMD ["./execute"]
37
+
38
+ USER $USERID
You can’t perform that action at this time.
0 commit comments