Kaballas commited on
Commit
d0882e6
·
1 Parent(s): 3d2275e
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -33,9 +33,10 @@ RUN pip install --no-cache-dir uv
33
 
34
  WORKDIR /app
35
 
36
- # Use /tmp for cache to avoid permission issues
37
- ENV UV_CACHE_DIR=/tmp/uvcache
38
- RUN mkdir -p ${UV_CACHE_DIR} && chmod -R 777 ${UV_CACHE_DIR}
 
39
 
40
  # Copy project files
41
  COPY . /app
@@ -49,4 +50,4 @@ EXPOSE 7860
49
  ENV PORT=7860
50
 
51
  # Remove uv cache at runtime to avoid permission issues
52
- CMD ["sh", "-c", "rm -rf /tmp/uvcache && uv run mcp-server-mariadb-vector --transport sse --host 0.0.0.0 --port $PORT"]
 
33
 
34
  WORKDIR /app
35
 
36
+
37
+ # Use /app/.cache/uv for cache to avoid permission issues
38
+ ENV UV_CACHE_DIR=/app/.cache/uv
39
+ RUN mkdir -p /app/.cache/uv && chmod -R 777 /app/.cache/uv
40
 
41
  # Copy project files
42
  COPY . /app
 
50
  ENV PORT=7860
51
 
52
  # Remove uv cache at runtime to avoid permission issues
53
+ CMD ["sh", "-c", "rm -rf /app/.cache/uv && mkdir -p /app/.cache/uv && uv run mcp-server-mariadb-vector --transport sse --host 0.0.0.0 --port $PORT"]