Skip to content

Commit 499de2b

Browse files
authored
Merge pull request #25 from Becksteinlab/develop
Move entrypoint to last stage
2 parents 5c103fd + 0e49616 commit 499de2b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docker/common/CPU.Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ RUN chmod +x /opt/docker/bin/entrypoint_source
7979
COPY entrypoint /opt/docker/bin/entrypoint
8080
RUN chmod +x /opt/docker/bin/entrypoint
8181

82-
# Ensure that all containers start with tini and the user selected process.
83-
# Activate the `conda` environment `base`.
84-
# Provide a default command (`bash`), which will start if the user doesn't specify one.
85-
ENTRYPOINT [ "/opt/conda/bin/tini", "--", "/opt/docker/bin/entrypoint" ]
86-
CMD [ "/bin/bash" ]
87-
8882
FROM conda AS build
8983

9084
ARG LMP_OPTS=""
@@ -132,3 +126,9 @@ RUN ln -s /opt/gromacs_build/bin/gmx /bin/gmx
132126

133127
COPY --from=build /opt/lammps_build /opt/lammps_build
134128
RUN ln -s /opt/lammps_build/bin/lmp /bin/lmp
129+
130+
# Ensure that all containers start with tini and the user selected process.
131+
# Activate the `conda` environment `base`.
132+
# Provide a default command (`bash`), which will start if the user doesn't specify one.
133+
ENTRYPOINT [ "/opt/conda/bin/tini", "--", "/opt/docker/bin/entrypoint" ]
134+
CMD [ "/bin/bash" ]

docker/common/GPU.Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ RUN chmod +x /opt/docker/bin/entrypoint_source
8282
COPY entrypoint /opt/docker/bin/entrypoint
8383
RUN chmod +x /opt/docker/bin/entrypoint
8484

85-
# Ensure that all containers start with tini and the user selected process.
86-
# Activate the `conda` environment `base`.
87-
# Provide a default command (`bash`), which will start if the user doesn't specify one.
88-
ENTRYPOINT [ "/opt/conda/bin/tini", "--", "/opt/docker/bin/entrypoint" ]
89-
CMD [ "/bin/bash" ]
90-
9185
FROM conda AS build
9286

9387
ARG LMP_OPTS=""
@@ -135,3 +129,9 @@ RUN ln -s /opt/gromacs_build/bin/gmx /bin/gmx
135129

136130
COPY --from=build /opt/lammps_build /opt/lammps_build
137131
RUN ln -s /opt/lammps_build/bin/lmp /bin/lmp
132+
133+
# Ensure that all containers start with tini and the user selected process.
134+
# Activate the `conda` environment `base`.
135+
# Provide a default command (`bash`), which will start if the user doesn't specify one.
136+
ENTRYPOINT [ "/opt/conda/bin/tini", "--", "/opt/docker/bin/entrypoint" ]
137+
CMD [ "/bin/bash" ]

0 commit comments

Comments
 (0)