From eb8c93cc1b8894046912e2924d0b089b704171bf Mon Sep 17 00:00:00 2001 From: Archimedes Trajano Date: Sun, 28 Jul 2024 02:36:18 -0400 Subject: [PATCH] enable tracing and reduce files being copied --- Caddyfile | 10 ++++++++++ Dockerfile | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 879661d..acad227 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,5 +1,15 @@ +{ + admin off + auto_https off + persist_config off +} + :80 +@tracingEnabled expression {env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT} != "" root * /usr/share/caddy file_server try_files {path} / +handle @tracingEnabled { + tracing +} diff --git a/Dockerfile b/Dockerfile index 2e9195a..ba93805 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,10 @@ FROM node:16.14.2 AS ci-stage WORKDIR /app COPY package*.json ./ RUN --mount=type=cache,target=/root/.npm npm ci -COPY ./ . +COPY ./src/ ./src/ +COPY ./.storybook/ ./.storybook/ +COPY *.js *.json ./ +RUN ls ./ FROM ci-stage AS build-stage RUN npm run build