volsu-contests/frontend/entrypoint.sh
2025-11-30 22:10:36 +03:00

12 lines
227 B
Bash
Executable File

#!/bin/sh
set -e
# Sync node_modules if package.json changed
if [ ! -d "node_modules" ] || [ "package.json" -nt "node_modules" ]; then
echo "Installing dependencies..."
npm install
touch node_modules
fi
exec "$@"