Use setup script on exporter instead of direct commands

This commit is contained in:
Andrey Antukh
2025-12-01 09:20:44 +01:00
parent b18c421415
commit 40e3617138
2 changed files with 12 additions and 3 deletions

View File

@@ -113,9 +113,7 @@ WORKDIR /opt/penpot/exporter
USER penpot:penpot
RUN set -ex; \
corepack install; \
yarn install; \
yarn run playwright install chromium; \
./setup \
rm -rf /opt/penpot/.yarn
CMD ["node", "app.js"]

View File

@@ -18,4 +18,15 @@ cp ../.yarnrc.yml target/;
cp yarn.lock target/;
cp package.json target/;
cat <<EOF | tee target/setup
#/usr/bin/env bash
set -e;
corepack enable;
corepack install;
yarn install
yarn run playwright install chromium;
EOF
chmod +x target/setup;
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/app.js;