ee
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -33,9 +33,10 @@ RUN pip install --no-cache-dir uv
|
|
33 |
|
34 |
WORKDIR /app
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
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 /
|
|
|
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"]
|