mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Merge pull request #7863 from penpot/niwinz-staging-improve-yarn-independency
✨ Use setup script on exporter instead of direct commands
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -80,3 +80,4 @@ node_modules
|
|||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
/render-wasm/target/
|
/render-wasm/target/
|
||||||
/**/.yarn/*
|
/**/.yarn/*
|
||||||
|
/.pnpm-store
|
||||||
|
|||||||
@@ -113,9 +113,7 @@ WORKDIR /opt/penpot/exporter
|
|||||||
USER penpot:penpot
|
USER penpot:penpot
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
corepack install; \
|
./setup \
|
||||||
yarn install; \
|
|
||||||
yarn run playwright install chromium; \
|
|
||||||
rm -rf /opt/penpot/.yarn
|
rm -rf /opt/penpot/.yarn
|
||||||
|
|
||||||
CMD ["node", "app.js"]
|
CMD ["node", "app.js"]
|
||||||
|
|||||||
@@ -18,4 +18,15 @@ cp ../.yarnrc.yml target/;
|
|||||||
cp yarn.lock target/;
|
cp yarn.lock target/;
|
||||||
cp package.json 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;
|
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/app.js;
|
||||||
|
|||||||
Reference in New Issue
Block a user