From a4cfb44953614881d2cacdf0552a0be8f9214a9a Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Fri, 20 May 2022 15:07:47 +0530 Subject: [PATCH] =?UTF-8?q?chore(docker):=20=F0=9F=9A=80=20Update=20Docker?= =?UTF-8?q?file=20and=20.dockerignore=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Prashant Shahi --- deploy/docker/common/nginx-config.conf | 2 +- frontend/.dockerignore | 3 ++- frontend/Dockerfile | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/deploy/docker/common/nginx-config.conf b/deploy/docker/common/nginx-config.conf index 3153dff62f..705656bb6e 100644 --- a/deploy/docker/common/nginx-config.conf +++ b/deploy/docker/common/nginx-config.conf @@ -9,7 +9,7 @@ server { gzip_vary on; gzip_comp_level 6; gzip_buffers 16 8k; - gzip_http_version 1.1; + gzip_http_version 1.1; location / { if ( $uri = '/index.html' ) { diff --git a/frontend/.dockerignore b/frontend/.dockerignore index ec1a1c2616..2e3d78bb02 100644 --- a/frontend/.dockerignore +++ b/frontend/.dockerignore @@ -1,4 +1,5 @@ node_modules .vscode build -.env \ No newline at end of file +.env +.git diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a727b49c71..c033d07bf6 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,5 @@ # stage1 as builder -FROM node:12.22.0 as builder +FROM node:16.15.0-slim as builder # Add Maintainer Info LABEL maintainer="signoz" @@ -16,7 +16,7 @@ COPY package.json ./ ENV NODE_ENV=production # Install the dependencies and make the folder -RUN yarn install +RUN CI=1 yarn install COPY . . @@ -37,4 +37,4 @@ COPY --from=builder /frontend/build /usr/share/nginx/html EXPOSE 3301 -ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file +ENTRYPOINT ["nginx", "-g", "daemon off;"]