penpot/docker/images/Dockerfile.mcp
David Barragán Merino 97a833f1e7
🐳 Migrate penpot images to DHI (#10734)
Move Dockerfile.frontend, .backend, .exporter, .mcp and .storybook
under docker/images/ from ubuntu:26.04 / nginx-unprivileged / a
manual Node tarball install to Docker Hardened Images (Debian 13,
or Alpine for storybook). storybook and mcp get a true non-dev
runtime; frontend, backend and exporter keep the -dev tag as their
final image, since each needs a shell and/or package manager at
container runtime (nginx templating, fontforge/python3, and a
headless-browser stack, respectively).
2026-07-31 19:27:15 +02:00

27 lines
556 B
Docker

FROM dhi.io/node:24.18.1-debian13-dev AS build
LABEL maintainer="Penpot <docker@penpot.app>"
ENV DEBIAN_FRONTEND=noninteractive
ARG BUNDLE_PATH="./bundle-mcp/"
COPY $BUNDLE_PATH /opt/penpot/mcp/
WORKDIR /opt/penpot/mcp
RUN ./setup
FROM dhi.io/node:24.18.1-debian13 AS image
LABEL maintainer="Penpot <docker@penpot.app>"
ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
PENPOT_MCP_SERVER_HOST=0.0.0.0
COPY --from=build --chown=node:node /opt/penpot/mcp /opt/penpot/mcp
WORKDIR /opt/penpot/mcp
USER node
CMD ["node", "index.js", "--multi-user"]