🐛 Fix exporter bundle deps issue with pnpm

This commit is contained in:
Andrey Antukh 2026-02-17 17:46:09 +01:00
parent 916107ce04
commit 70013fde74
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
NODE_VERSION=v22.22.0 \
DEBIAN_FRONTEND=noninteractive \
PATH=/opt/node/bin:/opt/imagick/bin:$PATH
PATH=/opt/node/bin:/opt/imagick/bin:$PATH \
PLAYWRIGHT_BROWSERS_PATH=/opt/penpot/browsers
RUN set -ex; \
useradd -U -M -u 1001 -s /bin/false -d /opt/penpot penpot; \

View File

@ -15,6 +15,7 @@ pnpm run build;
cp pnpm-lock.yaml target/;
cp package.json target/;
touch target/pnpm-workspace.yaml;
cat <<EOF | tee target/setup
#/usr/bin/env bash
@ -22,7 +23,7 @@ set -e;
corepack enable;
corepack install;
pnpm install
pnpx playwright install chromium;
pnpm exec playwright install chromium;
EOF
chmod +x target/setup;