Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

build(Dockerfile): sentence-transformer perms

Christianc42725d2028a
diff --git a/Dockerfile b/Dockerfile
index 57e3f77..f693ee3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,10 +10,6 @@ ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
-RUN mkdir -p /app/.cache && chown -R appuser:appuser /app/.cache
-ENV TRANSFORMERS_CACHE=/app/.cache
-ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache
-
RUN apt-get update && apt-get install -y \
build-essential \
curl \
@@ -67,6 +63,10 @@ COPY --chown=appuser:appuser src/ ./src/
USER appuser
+RUN mkdir -p /app/.cache && chown -R appuser:appuser /app/.cache
+ENV TRANSFORMERS_CACHE=/app/.cache
+ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache
+
# Expose port
EXPOSE 8000