Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore(docker): 🚀 Update Dockerfile and .dockerignore files

Prashant Shahia4cfb4495361
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;"]