-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Build Weviate in the official golang image (which uses Debian) | ||
# See https://github.com/weaviate/weaviate/blob/master/Dockerfile | ||
FROM golang as weaviate-go | ||
RUN apt install -y git | ||
RUN git clone --depth=1 https://github.com/weaviate/weaviate | ||
WORKDIR weaviate | ||
RUN GOOS=linux \ | ||
go build -ldflags '-w -extldflags "-static"' \ | ||
-o /weaviate-server ./cmd/weaviate-server | ||
|
||
# Copy it into a new image & install the client | ||
FROM ann-benchmarks | ||
COPY --from=weaviate-go /weaviate-server /bin/weaviate | ||
RUN pip install weaviate-client |