volsu-contests/frontend/entrypoint.sh

12 lines
227 B
Bash

#!/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 "$@"