Browse Source

Ensure we're using the latest node image

Jamie Curnow 5 years ago
parent
commit
fff31b0f34
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/frontend-build

+ 1 - 0
scripts/frontend-build

@@ -7,6 +7,7 @@ DOCKER_IMAGE=jc21/alpine-nginx-full:node
 
 # Ensure docker exists
 if hash docker 2>/dev/null; then
+	docker pull "${DOCKER_IMAGE}"
 	cd "${DIR}/.."
 	echo -e "${BLUE}❯ ${CYAN}Building Frontend ...${RESET}"
 	docker run --rm -e CI=true -v "$(pwd)/frontend:/app/frontend" -w /app/frontend "$DOCKER_IMAGE" sh -c "yarn install && yarn build && yarn build && chown -R $(id -u):$(id -g) /app/frontend"