Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove nvm to speed build time
The Dockerfile already pulls the node:12 image, so there's no need for NVM to be downloaded and installed as well. Removing this speeds up the image build time (making Github Actions go faster)
  • Loading branch information
Jason Gill authored and Kristian Freeman committed May 5, 2020
1 parent e5160f5 commit 1202bb2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions entrypoint.sh
Expand Up @@ -3,20 +3,8 @@
set -e

export HOME="/github/workspace"
export NVM_DIR="/github/workspace/nvm"
export WRANGLER_HOME="/github/workspace"

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash

# Comments beginning with "shellcheck" use shellcheck, a shell script linter.
# The below comments ignore shellcheck linting on the instructions provided
# by NVM.

# shellcheck source=/dev/null
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# shellcheck source=/dev/null
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

mkdir -p "$HOME/.wrangler"
chmod -R 770 "$HOME/.wrangler"

Expand Down

0 comments on commit 1202bb2

Please sign in to comment.