MVPilgrim commited on
Commit
3ce0a6f
·
verified ·
1 Parent(s): 0420343

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -20,8 +20,8 @@ ARG TARGETARCH
20
  ARG GITHASH="unknown"
21
  ARG EXTRA_BUILD_ARGS=""
22
  COPY . .
23
- RUN GOOS=linux GOARCH=$TARGETARCH go build $EXTRA_BUILD_ARGS \
24
- -ldflags '-w -extldflags "-static" -X github.com/weaviate/weaviate/usecases/config.GitHash='"$GITHASH"'' \
25
  -o /weaviate-server ./cmd/weaviate-server
26
 
27
  ###############################################################################
 
20
  ARG GITHASH="unknown"
21
  ARG EXTRA_BUILD_ARGS=""
22
  COPY . .
23
+ RUN CGO_ENABLED=0 GOARCH=$TARGETARCH go build $EXTRA_BUILD_ARGS \
24
+ -a -ldflags '-w -extldflags "-static" -X github.com/weaviate/weaviate/usecases/config.GitHash='"$GITHASH"'' \
25
  -o /weaviate-server ./cmd/weaviate-server
26
 
27
  ###############################################################################