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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
Add Dockerfile
“himanshu”6cf2fb549083
diff --git a/frontend/Dockerfile b/frontend/Dockerfileindex dffea1a128..2f9361c633 100644--- a/frontend/Dockerfile+++ b/frontend/Dockerfile@@ -1,32 +1,15 @@-# stage1 as builder-FROM node:14-alpine as builder+FROM node:12.20.1-alpine3.9-# copy the package.json to install dependencies-COPY package.json ./-# Install the dependencies and make the folder-RUN npm install && mkdir /react-ui && mv ./node_modules ./react-ui+ADD ./ ./frontend-WORKDIR /react-ui+WORKDIR /frontend-COPY . .+RUN yarn && yarn build+RUN yarn global add serve-# Build the project and copy the files-RUN npm run build+ARG PORT=3000+EXPOSE $PORT-FROM nginx:1.15-alpine--#!/bin/sh--COPY conf/default.conf /etc/nginx/conf.d/default.conf--## Remove default nginx index page-RUN rm -rf /usr/share/nginx/html/*--# Copy from the stahg 1-COPY --from=builder /react-ui/build /usr/share/nginx/html--EXPOSE 3000--ENTRYPOINT ["nginx", "-g", "daemon off;"]\ No newline at end of file+CMD ["serve", "-s","build"]\ No newline at end of filediff --git a/frontend/docker-compose.yml b/frontend/docker-compose.ymlnew file mode 100644index 0000000000..b102e15577--- /dev/null+++ b/frontend/docker-compose.yml@@ -0,0 +1,6 @@+version: "3.9"+services:+ web:+ build: .+ ports:+ - "3000:3000"\ No newline at end of file