Skip to content

Commit f061aeb

Browse files
committed
improves Dockerfile by addressing a Docker warning recommending JSON arguments for ENTRYPOINT
1 parent 3751804 commit f061aeb

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docker/Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,14 @@ RUN rm -r tutorial-examples
8888

8989
RUN mkdir dh && mkdir ssm-agent
9090

91-
# disable entry point specified by the Gobra base container:
92-
# ENTRYPOINT []
93-
ENTRYPOINT cp -r dh-orig/. dh/ && \
94-
cp -r ssm-agent-orig/. ssm-agent/ && \
95-
/bin/bash
91+
# disable entry point specified by the Gobra image and make sure to setup the directories
92+
# by creating the following shell script and setting it as the image's entrypoint:
93+
COPY --chmod=755 <<EOT /entrypoint.sh
94+
#!/usr/bin/env bash
95+
set -e
96+
cp -r dh-orig/. dh/
97+
cp -r ssm-agent-orig/. ssm-agent/
98+
/bin/bash
99+
EOT
100+
101+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)