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

Signed-off-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
Prashant Shahi 2022-05-20 15:07:47 +05:30
parent 914be6e4cf
commit a4cfb44953
No known key found for this signature in database
GPG Key ID: 6E62ED14180EB2C0
3 changed files with 6 additions and 5 deletions

View File

@ -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' ) {

View File

@ -1,4 +1,5 @@
node_modules
.vscode
build
.env
.env
.git

View File

@ -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;"]
ENTRYPOINT ["nginx", "-g", "daemon off;"]