From a08becba0fe84c80b2945604c85dbd3fd1068a63 Mon Sep 17 00:00:00 2001 From: Lee Brown Date: Wed, 7 Aug 2019 21:19:30 -0800 Subject: [PATCH] web-api fixed dockerfile conditional error --- cmd/web-api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web-api/Dockerfile b/cmd/web-api/Dockerfile index c4b3bbb..36ff03d 100644 --- a/cmd/web-api/Dockerfile +++ b/cmd/web-api/Dockerfile @@ -51,7 +51,7 @@ WORKDIR ./cmd/${service} # Update the API documentation. # Disabled for the moment as it takes forever to run, rely on manual execution. -RUN if [ "$swagInit" != "" ] swag init ; fi +RUN if [ "$swagInit" != "" ]; then swag init ; fi RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.build=${commit_ref}" -a -installsuffix nocgo -o /gosrv .