mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
feat: Add deno runtime to docker image (#8715)
This commit is contained in:
parent
545a909953
commit
8dc5fc1a55
2 changed files with 9 additions and 2 deletions
|
|
@ -14,6 +14,10 @@ ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2
|
|||
COPY --from=ghcr.io/astral-sh/uv:0.6.13 /uv /uvx /bin/
|
||||
RUN uv --version
|
||||
|
||||
# Add `deno` for better MCP isolation
|
||||
RUN apk add --no-cache deno
|
||||
RUN deno --version
|
||||
|
||||
RUN mkdir -p /app && chown node:node /app
|
||||
WORKDIR /app
|
||||
|
||||
|
|
@ -47,4 +51,4 @@ CMD ["npm", "run", "backend"]
|
|||
# WORKDIR /usr/share/nginx/html
|
||||
# COPY --from=node /app/client/dist /usr/share/nginx/html
|
||||
# COPY client/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
# ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||
# ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||
|
|
|
|||
|
|
@ -58,6 +58,9 @@ FROM base-min AS api-build
|
|||
# Add `uv` for extended MCP support
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.6.13 /uv /uvx /bin/
|
||||
RUN uv --version
|
||||
# Add `deno` for better MCP isolation
|
||||
RUN apk add --no-cache deno
|
||||
RUN deno --version
|
||||
WORKDIR /app
|
||||
# Install only production deps
|
||||
RUN npm ci --omit=dev
|
||||
|
|
@ -70,4 +73,4 @@ COPY --from=client-build /app/client/dist ./client/dist
|
|||
WORKDIR /app/api
|
||||
EXPOSE 3080
|
||||
ENV HOST=0.0.0.0
|
||||
CMD ["node", "server/index.js"]
|
||||
CMD ["node", "server/index.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue