434d6c2656
Reduce docker image size based on: https://cadu.dev/reduce-your-docker-images-an-example-with-ruby/
20 lines
326 B
Bash
Executable file
20 lines
326 B
Bash
Executable file
#!/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 "$@"
|