mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-21 21:03:20 +08:00

Signed-off-by: Prashant Shahi <prashant@signoz.io> Signed-off-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
38 lines
687 B
Docker
38 lines
687 B
Docker
# Builder stage
|
|
FROM node:16.15.0-slim as builder
|
|
|
|
# Add Maintainer Info
|
|
LABEL maintainer="signoz"
|
|
|
|
ARG TARGETOS=linux
|
|
ARG TARGETARCH
|
|
|
|
WORKDIR /frontend
|
|
|
|
# Copy the package.json and .yarnrc files prior to install dependencies
|
|
COPY package.json ./
|
|
COPY .yarnrc ./
|
|
|
|
# Install the dependencies and make the folder
|
|
RUN CI=1 yarn install
|
|
|
|
COPY . .
|
|
|
|
# Build the project and copy the files
|
|
RUN yarn build
|
|
|
|
|
|
FROM nginx:1.18-alpine
|
|
|
|
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 3301
|
|
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|