Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 3af0175

Browse files
authored
Update Dockerfile
1 parent 7ec70f1 commit 3af0175

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ ENV PYTHONPATH=/app/src
4646

4747
# Copy weaviate_data into the container if the build argument exists
4848
# This step will only work if the build argument is set
49-
COPY ${WEAVIATE_DATA_PATH} /app/weaviate_data
49+
RUN if [ -n "$WEAVIATE_DATA_PATH" ]; then \
50+
echo "Copying weaviate_data from $WEAVIATE_DATA_PATH"; \
51+
cp -r $WEAVIATE_DATA_PATH /app/weaviate_data; \
52+
else \
53+
echo "No WEAVIATE_DATA_PATH provided, skipping copy."; \
54+
fi
5055

5156
# Allow to expose weaviate_data volume
5257
VOLUME ["/app/weaviate_data"]

0 commit comments

Comments
 (0)