1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-08 23:56:37 +02:00

web-api fixed dockerfile conditional error

This commit is contained in:
Lee Brown 2019-08-07 21:19:30 -08:00
parent 7217deaf15
commit a08becba0f

View File

@ -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 .