From fff31b0f34ef215e34e811da409396753855150f Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 3 Jun 2020 10:30:29 +1000 Subject: [PATCH] Ensure we're using the latest node image --- scripts/frontend-build | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/frontend-build b/scripts/frontend-build index 05be2eae..506a3347 100755 --- a/scripts/frontend-build +++ b/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"