Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -20,8 +20,8 @@ ARG TARGETARCH
|
|
20 |
ARG GITHASH="unknown"
|
21 |
ARG EXTRA_BUILD_ARGS=""
|
22 |
COPY . .
|
23 |
-
RUN
|
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 |
###############################################################################
|