This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed
Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,3 @@ __pycache__
44* .pyo
55tests /
66docs /
7- weaviate_data_path /
Original file line number Diff line number Diff line change 5959 name_is_regexp : true
6060 skip_unpack : false
6161 if_no_artifact_found : ignore
62- - name : Debug artifact extraction
63- run : |
64- echo "Listing extracted files:"
65- ls -l ./weaviate_data
6662 - name : Build image for Linux
6763 id : image-build-linux
6864 uses : docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v5
7470 tags : ${{ steps.docker-metadata.outputs.tags }}
7571 labels : ${{ steps.docker-metadata.outputs.labels }}
7672 cache-from : type=gha
77- cache-to : type=gha,mode=max
78- build-args : |
79- WEAVIATE_DATA_PATH=./weaviate_data
73+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ COPY . /app
2424# Runtime stage: Create the final lightweight image
2525FROM python:3.12-slim AS runtime
2626
27- # Accept build argument for weaviate_data path
28- ARG WEAVIATE_DATA_PATH
29-
3027# Install runtime system dependencies
3128RUN apt-get update && apt-get install -y --no-install-recommends \
3229 libgomp1 \
@@ -44,16 +41,6 @@ COPY --from=builder /app /app
4441# Set the PYTHONPATH environment variable
4542ENV PYTHONPATH=/app/src
4643
47- # Copy weaviate_data into the container if the build argument exists
48- # This step will only work if the build argument is set
49- RUN if [ -n "$WEAVIATE_DATA_PATH" ]; then \
50- echo "Copying weaviate_data from $WEAVIATE_DATA_PATH" ; \
51- mkdir -p /app/weaviate_data; \
52- cp -r $WEAVIATE_DATA_PATH/* /app/weaviate_data || true; \
53- else \
54- echo "No WEAVIATE_DATA_PATH provided, skipping copy." ; \
55- fi
56-
5744# Allow to expose weaviate_data volume
5845VOLUME ["/app/weaviate_data" ]
5946
You can’t perform that action at this time.
0 commit comments