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:
parent
7217deaf15
commit
a08becba0f
@ -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 .
|
||||
|
Loading…
x
Reference in New Issue
Block a user