Add readme for build module. Improve Dockerfile.Sample with more feature examples

This commit is contained in:
sid palas
2023-01-30 11:46:53 -05:00
parent da615a3e6c
commit 34498b5afa
7 changed files with 94 additions and 5 deletions

View File

@ -13,7 +13,7 @@ RUN go mod download
COPY . .
# Compile application during build rather than at runtime
# Add -w and -s flags to
# Add flags to statically link binary
RUN go build \
-ldflags="-linkmode external -extldflags -static" \
-o api-golang