Improve build process

Remove hardcoded yarn version on devenv
This commit is contained in:
Andrey Antukh 2025-01-31 13:39:16 +01:00
parent f871f88f30
commit d15f0f1fd0
8 changed files with 12 additions and 16 deletions

View file

@ -162,7 +162,6 @@ RUN set -eux; \
tar -xf /tmp/nodejs.tar.gz --strip-components=1; \
chown -R root /usr/local/nodejs; \
corepack enable; \
corepack install -g yarn@4.3.1; \
npx playwright install --with-deps chromium; \
rm -rf /tmp/nodejs.tar.gz;
@ -277,14 +276,6 @@ RUN set -eux; \
./emsdk activate latest; \
rustup target add wasm32-unknown-emscripten;
USER penpot
RUN set -eux; \
corepack enable; \
corepack install -g yarn@4.3.1;
USER root
WORKDIR /home
COPY files/nginx.conf /etc/nginx/nginx.conf

View file

@ -8,10 +8,12 @@ source ~/.bashrc
echo "[start-tmux.sh] Installing node dependencies"
pushd ~/penpot/frontend/
yarn install
corepack up;
yarn install;
yarn run playwright install --with-deps chromium
popd
pushd ~/penpot/exporter/
corepack up;
yarn install
yarn run playwright install --with-deps chromium
popd