Skip to content

Commit

Permalink
Merge pull request #43 from Financial-Times/fix-dockerfile
Browse files Browse the repository at this point in the history
Fix docker run command so the process has PID 1 in the container
  • Loading branch information
tamas-molnar committed Apr 28, 2017
2 parents ee5be75 + 1cf677b commit 3f36fb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ RUN apk add --no-cache --virtual .build-dependencies git \
&& rm -rf $GOPATH/src $GOPATH/pkg $GOPATH/.cache $GOPATH/bin /${PROJECT}-sources

WORKDIR /
# Using the expanded command, so that the shell will expand the $PROJECT env var. See https://docs.docker.com/engine/reference/builder/#cmd
CMD ["sh", "-c", "/${PROJECT}"]
CMD [ "/coco-system-healthcheck" ]

0 comments on commit 3f36fb7

Please sign in to comment.