mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-06 20:55:12 +08:00
31 lines
570 B
Docker
31 lines
570 B
Docker
# stage1 as builder
|
|
FROM node:12-alpine as builder
|
|
|
|
WORKDIR /frontend
|
|
|
|
# copy the package.json to install dependencies
|
|
COPY package.json ./
|
|
|
|
# Install the dependencies and make the folder
|
|
RUN yarn install
|
|
|
|
COPY . .
|
|
|
|
# Build the project and copy the files
|
|
RUN yarn build
|
|
|
|
FROM nginx:1.12-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 /frontend/build /usr/share/nginx/html
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"] |