Skip to content

Commit

Permalink
install weaviate
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Apr 14, 2023
1 parent 61a63ee commit c7a22bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions install/Dockerfile.weaviate
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

0 comments on commit c7a22bd

Please sign in to comment.