mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 12:58:55 +00:00
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).
27 lines
556 B
Docker
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"]
|