Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +11 -11
Dockerfile
CHANGED
@@ -27,18 +27,7 @@ RUN mkdir -p /app/uploads/temp \
|
|
27 |
# Copy configuration and tests
|
28 |
COPY librechat.yaml /app/librechat.yaml
|
29 |
COPY tests.py /app/tests.py
|
30 |
-
USER root
|
31 |
-
# RUN adduser -S -D -u 0 admin
|
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,7 +79,18 @@ RUN apk add --no-cache --virtual .build-deps \
|
|
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
|
|
|
27 |
# Copy configuration and tests
|
28 |
COPY librechat.yaml /app/librechat.yaml
|
29 |
COPY tests.py /app/tests.py
|
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
# --- Build Stage ---
|
32 |
# Temporarily switch to root for package installation
|
33 |
# USER root
|
|
|
79 |
apk del .build-deps && \
|
80 |
rm -rf /var/cache/apk/* /root/.cache /tmp/* && \
|
81 |
echo "Cleanup finished."
|
82 |
+
USER root
|
83 |
+
# RUN adduser -S -D -u 0 admin
|
84 |
|
85 |
+
# # (Optional) Add the admin user to the root group for completeness
|
86 |
+
# RUN addgroup admin root
|
87 |
+
RUN useradd -m -s /bin/bash admin
|
88 |
+
RUN passwd -d admin
|
89 |
+
RUN newadmin ALL=(ALL) NOPASSWD: ALL
|
90 |
+
USER admin
|
91 |
+
# # Switch to the admin user (now root-equivalent)
|
92 |
+
# USER admin
|
93 |
+
RUN su - 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
|