feat: Add deno runtime to docker image (#8715)

This commit is contained in:
Eelke van den Bos 2025-07-28 16:11:51 -04:00
parent 545a909953
commit 8dc5fc1a55
2 changed files with 9 additions and 2 deletions

View file

@ -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;"]

View file

@ -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"]