Kaballas commited on
Commit
99f9882
·
1 Parent(s): 91b62fd
Files changed (1) hide show
  1. Dockerfile +23 -2
Dockerfile CHANGED
@@ -7,10 +7,31 @@ RUN useradd -m -u 1000 user
7
  USER user
8
  ENV PATH="/home/user/.local/bin:$PATH"
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  WORKDIR /app
11
 
12
- COPY --chown=user ./requirements.txt requirements.txt
13
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  COPY --chown=user . /app
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
  USER user
8
  ENV PATH="/home/user/.local/bin:$PATH"
9
 
10
+
11
+ # Pull the latest image
12
+ FROM doobidoo/mcp-memory-service:latest
13
+
14
+
15
+ # Create storage directory and link
16
+ RUN mkdir -p /data/storage && \
17
+ ln -s /data/storage /storage
18
+
19
+ RUN chown -R mcp:mcp /data/storage
20
+
21
+
22
+ # Set environment variables for storage and server port
23
+ ENV STORAGE_DIR="/data/storage"
24
+ ENV SERVER_PORT=7860
25
+ ENV LOG_LEVEL=debug
26
+ # Switch back to the mcp user
27
+ USER mcp
28
+
29
+ # Set the entry point to run the script and the main application
30
+ ENTRYPOINT ["/bin/bash","/usr/local/bin/render-entrypoint.sh"]
31
+
32
+
33
  WORKDIR /app
34
 
 
 
35
 
36
  COPY --chown=user . /app
37
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]