diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index 2fc1ddc..cfbcf25 100755 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -51,28 +51,12 @@ clean() { ./resources } -install_dependencies() { - # envsubst - apk add gettext - - # yq - wget https://github.com/mikefarah/yq/releases/download/v4.40.7/yq_linux_amd64.tar.gz -O - |\ - tar xz && mv yq_linux_amd64 /usr/bin/yq - - # global node modules - npm install -g postcss postcss-cli @fullhuman/postcss-purgecss purgecss-whitelister flexsearch lodash -} - prepare () { if [[ "$PREPARE" = true ]]; then clean echo "=====> prepare phase" - if [[ "$DOCKER" = true ]]; then - install_dependencies - fi - hugo mod get -u hugo mod npm pack diff --git a/docker-compose.yml b/docker-compose.yml index ed0a451..176a7ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,11 +3,9 @@ services: image: floryn90/hugo:0.135.0-ext-alpine ports: - 1313:1313 + user: root:root volumes: - .:/src - - /src/content - - /src/resources - - /src/node_modules working_dir: /src environment: - DOCKER=true