/
githubmirror
/
hugo
Обзор
Документация
Войти
/
githubmirror
/
hugo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/docker/entrypoint.sh
21 строка
671 B
Bjørn Erik Pedersen
Upgrade to latest Go version + Some Docker image improvements (note)
13 окт 2024, 21:01
13 окт 2024, 21:01
41f69a7
Код
Авторство
О чём код?
#!/bin/sh # Check if a custom hugo-docker-entrypoint.sh file exists. if [ -f hugo-docker-entrypoint.sh ]; then # Execute the custom entrypoint file. sh hugo-docker-entrypoint.sh "$@" exit $? fi # Check if a package.json file exists. if [ -f package.json ]; then # Check if node_modules exists. if [ ! -d node_modules ]; then # Install npm packages. # Note that we deliberately do not use `npm ci` here, as it would fail if the package-lock.json file is not up-to-date, # which would be the case if you run the container with a different OS or architecture than the one used to create the package-lock.json file. npm i fi fi exec "hugo" "$@"