Skip to content

Commit 9e66637

Browse files
author
Alan Christie
committed
- Fixed docker files for 1.13 support
1 parent 90f2467 commit 9e66637

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

Dockerfile-obabel

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends python-setuptoo
1313
# And the pip packages including pipeline-utilities and im-pipelines-utils-rdkit
1414
RUN pip install im-pipelines-utils==2.2.* im-pipelines-utils-rdkit==1.4.*
1515

16-
USER obabel
17-
1816
# The CMD is simply to run 'execute' in the WORKDIR.
1917
# The user would normally mount a volume with their own execute
2018
# script in it and then set the WORKDIR to the directory it's in.
@@ -25,7 +23,10 @@ USER obabel
2523
# which can be defined with the docker 'pipeline' build argument.
2624
ARG pipeline=informaticsmatters/pipelines-obabel:latest
2725
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
3130
CMD ["./execute"]
31+
32+
USER obabel

Dockerfile-pli

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ WORKDIR /usr/local/pli
1111
RUN make
1212

1313
RUN useradd -u 1001 -g 0 -m pli
14-
USER 1001
1514

1615
WORKDIR /home/pli
1716
ENV PLI_DIR /usr/local/pli
@@ -26,6 +25,9 @@ ENV PLI_DIR /usr/local/pli
2625
# which can be defined with the docker 'pipeline' build argument.
2726
ARG pipeline=informaticsmatters/pli:latest
2827
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
3131
CMD ["./execute"]
32+
33+
USER 1001

Dockerfile-smog

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN wget https://sourceforge.net/projects/opengrowth/files/SMoG2016.tar.gz/downl
1818
ARG USERID=1001
1919

2020
RUN useradd -u $USERID -g 0 -m smog
21-
USER $USERID
2221

2322
# The CMD is simply to run 'execute' in the WORKDIR.
2423
# The user would normally mount a volume with their own execute
@@ -31,6 +30,9 @@ USER $USERID
3130
ARG pipeline=informaticsmatters/smog:latest
3231
ENV PIPELINE=$pipeline
3332
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
3636
CMD ["./execute"]
37+
38+
USER $USERID

0 commit comments

Comments
 (0)