From dd128ad44911d732a846263857d1d6793346055d Mon Sep 17 00:00:00 2001 From: jkev53 Date: Tue, 13 Nov 2018 11:25:06 -0600 Subject: [PATCH] Add CMD to allow long running container --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 14da6bb..5ffe494 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,5 @@ RUN addgroup -S appgroup && adduser -S user -G appgroup # Tell docker that all future commands should run as the user user USER user COPY --from=builder /go/bin/grpcurl /usr/local/bin -WORKDIR /home/user \ No newline at end of file +WORKDIR /home/user +CMD ["sh", "-c", "tail -f /dev/null"] \ No newline at end of file