Spaces:
Running
Running
Delete Dockerfile
Browse files- Dockerfile +0 -86
Dockerfile
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
###############################################################################
|
2 |
-
# Use a specific version of Weaviate.
|
3 |
-
FROM semitechnologies/weaviate:1.23.7 as weaviate
|
4 |
-
|
5 |
-
# Set environment variables if needed.
|
6 |
-
ENV WEAVIATE_ORIGIN http://localhost:8080
|
7 |
-
|
8 |
-
# Expose the default port for Weaviate
|
9 |
-
EXPOSE 8080
|
10 |
-
|
11 |
-
# Additional configuration or startup scripts can be added here
|
12 |
-
# For example, copying configuration files or scripts:
|
13 |
-
# COPY startup.sh /usr/local/bin/startup.sh
|
14 |
-
# RUN chmod +x /usr/local/bin/startup.sh
|
15 |
-
|
16 |
-
# Define the default command
|
17 |
-
#CMD ["weaviate", "start"]
|
18 |
-
|
19 |
-
###############################################################################
|
20 |
-
# Base build image
|
21 |
-
FROM golang:1.21-alpine AS build_base
|
22 |
-
RUN apk add bash ca-certificates git gcc g++ libc-dev
|
23 |
-
WORKDIR /go/src/github.com/weaviate/weaviate
|
24 |
-
ENV GO111MODULE=on
|
25 |
-
# Populate the module cache based on the go.{mod,sum} files.
|
26 |
-
COPY go.mod .
|
27 |
-
COPY go.sum .
|
28 |
-
RUN go mod download
|
29 |
-
|
30 |
-
###############################################################################
|
31 |
-
# This image builds the weaviate server
|
32 |
-
FROM build_base AS server_builder
|
33 |
-
RUN apk add python3.11.5
|
34 |
-
|
35 |
-
ARG TARGETARCH
|
36 |
-
ARG GITHASH="unknown"
|
37 |
-
ARG EXTRA_BUILD_ARGS=""
|
38 |
-
COPY . .
|
39 |
-
RUN CGO_ENABLED=0 GOARCH=$TARGETARCH go build $EXTRA_BUILD_ARGS \
|
40 |
-
-a -ldflags '-w -extldflags "-static" -X github.com/weaviate/weaviate/usecases/config.GitHash='"$GITHASH"'' \
|
41 |
-
-o /weaviate-server ./cmd/weaviate-server
|
42 |
-
|
43 |
-
###############################################################################
|
44 |
-
#python environment and app.
|
45 |
-
#FROM python:3.11.5
|
46 |
-
#ENTRYPOINT ["/app/startup.sh"]
|
47 |
-
#RUN apt-get update && \
|
48 |
-
# apt-get install -y libc6 && \
|
49 |
-
# rm -rf /var/lib/apt/lists/*
|
50 |
-
WORKDIR /app
|
51 |
-
|
52 |
-
#RUN ls -l / || ls -l /lib || ls -l /usr || ls -l /usr/lib6 || echo "### An ls failed."
|
53 |
-
|
54 |
-
COPY ./requirements.txt /app/requirements.txt
|
55 |
-
COPY ./semsearch.py /app/semsearch.py
|
56 |
-
COPY ./startup.sh /app/startup.sh
|
57 |
-
RUN chmod 755 /app/startup.sh
|
58 |
-
|
59 |
-
COPY --from=weaviate /bin/weaviate /app/weaviate
|
60 |
-
COPY --from=weaviate ./modules ./
|
61 |
-
|
62 |
-
COPY --from=server_builder /lib/libc.musl-x86_64.so.1 /lib
|
63 |
-
RUN mkdir -p /usr/lib64 y
|
64 |
-
#RUN ls -l /usr/lib64
|
65 |
-
RUN ln -s /usr/lib64/libc.so.6 /usr/lib64/libc.musl-x86_64.so.1
|
66 |
-
|
67 |
-
RUN mkdir -p /var/lib/weaviate/data y
|
68 |
-
RUN chmod -R 777 /var
|
69 |
-
#COPY --from=weaviate /var/lib/weaviate/data /var/lib/weaviate/data
|
70 |
-
ENV AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED true
|
71 |
-
ENV AUTHENTICATION_OIDC_ENABLED false
|
72 |
-
ENV AUTHENTICATION_APIKEY_ENABLED false
|
73 |
-
ENV PERSISTENCE_DATA_PATH /var/lib/weaviate/data
|
74 |
-
#ENV ENABLE_MODULES text2vec-transformers
|
75 |
-
#ENV TRANSFORMERS_INFERENCE_API "http://127.0.0.1:999"
|
76 |
-
|
77 |
-
RUN mkdir -p /app/inputDocs
|
78 |
-
COPY ./inputDocs/* /app/inputDocs
|
79 |
-
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
80 |
-
RUN pip install https://files.pythonhosted.org/packages/13/87/e0cb08c2d4bd7d38ab63816b306c8b1e7cfdc0e59bd54462e8b0df069078/semantic_text_splitter-0.6.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
81 |
-
RUN pip show semantic-text-splitter
|
82 |
-
RUN useradd -m -u 1000 user
|
83 |
-
##############################################################################
|
84 |
-
# Start the weaviate vector database and the semantic search app.
|
85 |
-
#RUN /app/startup.sh
|
86 |
-
CMD ["/app/startup.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|