From 123c5011f1866ab40d78cbcd8785be65fc42a722 Mon Sep 17 00:00:00 2001 From: Conrad Date: Fri, 10 Jan 2020 10:35:54 +0100 Subject: [PATCH] Fixed a bug where the package*.json couldn't be found --- Dockerfile | 2 -- entrypoint.sh | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ce721e..385a631 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,3 @@ FROM node:latest COPY entrypoint.sh ./entrypoint.sh -COPY package*.json ./ -RUN npm install ENTRYPOINT ["./entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 6047d47..5a47906 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,7 +17,8 @@ EOF git config --global user.email "actions@github.com" git config --global user.name "GitHub Actions" } - +echo "Installing dependencies..." +npm install echo "Prettifing files..." prettier $INPUT_PRETTIER_OPTIONS