fix: pnpm in vite docker (#10344)
- Fix pnpm path in vite docker - Remove webpack files - fFx vite server port
This commit is contained in:
14
docker/entrypoints/vite.sh
Normal file → Executable file
14
docker/entrypoints/vite.sh
Normal file → Executable file
@@ -1,19 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
rm -rf /app/tmp/pids/server.pid
|
||||
rm -rf /app/tmp/cache/*
|
||||
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
echo "Waiting for pnpm and bundle integrity to match lockfiles...."
|
||||
PNPM="pnpm list --json | grep -q 'Missing dependencies'"
|
||||
BUNDLE="bundle check"
|
||||
|
||||
until ! $PNPM && $BUNDLE
|
||||
do
|
||||
sleep 2;
|
||||
done
|
||||
pnpm store prune
|
||||
pnpm install
|
||||
|
||||
echo "Ready to run Vite development server."
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
rm -rf /app/tmp/pids/server.pid
|
||||
rm -rf /app/tmp/cache/*
|
||||
|
||||
yarn install --check-files
|
||||
|
||||
echo "Waiting for yarn and bundle integrity to match lockfiles...."
|
||||
YARN="yarn check --integrity"
|
||||
BUNDLE="bundle check"
|
||||
|
||||
until $YARN && $BUNDLE
|
||||
do
|
||||
sleep 2;
|
||||
done
|
||||
|
||||
echo "Ready to run webpack development server."
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user