akiko19191 commited on
Commit
01bafed
·
verified ·
1 Parent(s): 3b2cb0c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -32,10 +32,13 @@ USER root
32
 
33
  # # (Optional) Add the admin user to the root group for completeness
34
  # RUN addgroup admin root
35
-
 
 
 
36
  # # Switch to the admin user (now root-equivalent)
37
  # USER admin
38
- # RUN su - admin
39
  # --- Build Stage ---
40
  # Temporarily switch to root for package installation
41
  # USER root
@@ -87,10 +90,7 @@ RUN apk add --no-cache --virtual .build-deps \
87
  apk del .build-deps && \
88
  rm -rf /var/cache/apk/* /root/.cache /tmp/* && \
89
  echo "Cleanup finished."
90
- RUN useradd -m -s /bin/bash admin
91
- RUN passwd -d admin
92
- RUN newadmin ALL=(ALL) NOPASSWD: ALL
93
- USER admin
94
  WORKDIR /app
95
  RUN git clone https://github.com/AIGENHACKER/mcp-hfspace && cd mcp-hfspace && npm install && npm run build && npm link
96
  RUN git clone https://github.com/exa-labs/exa-mcp-server && cd exa-mcp-server && npm install --save axios dotenv && npm run build && npm link
 
32
 
33
  # # (Optional) Add the admin user to the root group for completeness
34
  # RUN addgroup admin root
35
+ RUN useradd -m -s /bin/bash admin
36
+ RUN passwd -d admin
37
+ RUN newadmin ALL=(ALL) NOPASSWD: ALL
38
+ USER admin
39
  # # Switch to the admin user (now root-equivalent)
40
  # USER admin
41
+ RUN su - admin
42
  # --- Build Stage ---
43
  # Temporarily switch to root for package installation
44
  # USER root
 
90
  apk del .build-deps && \
91
  rm -rf /var/cache/apk/* /root/.cache /tmp/* && \
92
  echo "Cleanup finished."
93
+
 
 
 
94
  WORKDIR /app
95
  RUN git clone https://github.com/AIGENHACKER/mcp-hfspace && cd mcp-hfspace && npm install && npm run build && npm link
96
  RUN git clone https://github.com/exa-labs/exa-mcp-server && cd exa-mcp-server && npm install --save axios dotenv && npm run build && npm link