more otel
This commit is contained in:
1 parent
9620e3bfa6
commit
21f04d696b
88 files changed
+23419
-192
No files matched your search
+13
@@ -1,8 +1,14 @@
|
||||
ARG APP_RELEASE=dev
|
||||
ARG PUBLIC_SOURCEMAPS=false
|
||||
|
||||
# UI build stage
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
FROM node:alpine AS ui-builder
|
||||
|
||||
ARG APP_RELEASE
|
||||
ENV VITE_APP_RELEASE=${APP_RELEASE}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY otel-ui/ .
|
||||
@@ -28,6 +34,8 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -installsuff
|
||||
# Final stage
|
||||
FROM alpine:latest
|
||||
|
||||
ARG PUBLIC_SOURCEMAPS
|
||||
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
# Create non-root user
|
||||
@@ -39,6 +47,11 @@ COPY --from=go-builder /go-otel .
|
||||
COPY --from=go-builder /app/otel-ui/dist ./dist
|
||||
COPY static/ ./static
|
||||
COPY agents_example.md .
|
||||
COPY instrumentation.md .
|
||||
|
||||
# Private server-side maps are the default. Staging/dev can opt into public
|
||||
# maps for Chrome DevTools with --build-arg PUBLIC_SOURCEMAPS=true.
|
||||
RUN if [ "${PUBLIC_SOURCEMAPS}" != "true" ]; then find ./dist -type f -name '*.map' -delete; fi
|
||||
|
||||
# Ensure the appuser owns the files
|
||||
RUN chown -R appuser:appgroup /home/appuser/
|
||||
|
||||
Reference in new issue
Block a user