akiko19191 commited on
Commit
0a70843
·
verified ·
1 Parent(s): 9828d6f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -12
Dockerfile CHANGED
@@ -82,22 +82,10 @@ RUN apk add --no-cache --virtual .build-deps \
82
  RUN echo "root:password" | chpasswd
83
  USER node
84
  RUN ngrok config add-authtoken $NGROK_AUTHTOKEN
85
- RUN su root
86
  USER root
87
  WORKDIR /app
88
  RUN git clone https://github.com/AIGENHACKER/mcp-hfspace && cd mcp-hfspace && npm install && npm run build && npm link
89
  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
90
- # Switch back to the non-root user defined in the base image (assuming 'node')
91
- # Check the base image documentation if unsure about the default user
92
- RUN echo "node ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/node && \
93
- chmod 0440 /etc/sudoers.d/node
94
- #RUN usermod -aG root node
95
- #RUN usermod -aG wheel node
96
- RUN addgroup -S node root
97
- # RUN adduser node -G wheel
98
- # RUN adduser node -G root
99
- RUN echo 'permit nopass :node as root' >> /etc/doas.d/doas.conf
100
- # Expose the port the app runs on
101
  EXPOSE 7860
102
  USER root
103
  RUN npm install -g express ejs chart.js && npm cache clean --force
 
82
  RUN echo "root:password" | chpasswd
83
  USER node
84
  RUN ngrok config add-authtoken $NGROK_AUTHTOKEN
 
85
  USER root
86
  WORKDIR /app
87
  RUN git clone https://github.com/AIGENHACKER/mcp-hfspace && cd mcp-hfspace && npm install && npm run build && npm link
88
  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
 
 
 
 
 
 
 
 
 
 
 
89
  EXPOSE 7860
90
  USER root
91
  RUN npm install -g express ejs chart.js && npm cache clean --force