From 0ff55cf6cadaa275598246e9d411344c44f4c4a5 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Tue, 27 Jul 2021 14:04:26 +0000 Subject: [PATCH] fix(docker): add clang-tidy --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c00a9a7..35680c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,16 @@ FROM node:14-buster +RUN apt-get update \ + && apt-get install -y python3-pip \ + && pip3 install pylint \ + && apt-get install -y clang-tidy + +RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1 && cp ./bin/golangci-lint /usr/local/bin/golangci-lint + WORKDIR /app COPY ./package.json ./ RUN npm install COPY . . RUN npm run build -RUN apt-get update \ - && apt-get install -y python3-pip \ - && pip3 install pylint - -RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1 && cp ./bin/golangci-lint /usr/local/bin/golangci-lint - CMD ["npm", "run", "start:prod"]