Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Add minimal Docker build script, closes #1092

davidmezzettia0e2c9e4ab94
diff --git a/docker/minimal/Dockerfile b/docker/minimal/Dockerfile
new file mode 100644
index 00000000..36c71090
--- /dev/null
+++ b/docker/minimal/Dockerfile
@@ -0,0 +1,20 @@
+# Set base image
+ARG BASE_IMAGE=python:3.10-slim
+FROM $BASE_IMAGE
+
+# Target CPU architecture
+ARG TARGETARCH
+
+# Set Python version (i.e. 3, 3.10)
+ARG PYTHON_VERSION=3
+
+# Locale environment variables
+ENV LC_ALL=C.UTF-8
+ENV LANG=C.UTF-8
+
+RUN \
+ # Install minimal txtai project and dependencies
+ MINIMAL=1 python -m pip install --no-cache-dir txtai_minimal
+
+# Set default working directory
+WORKDIR /app