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