Skip to content

Commit

Permalink
enable tracing and reduce files being copied
Browse files Browse the repository at this point in the history
  • Loading branch information
trajano committed Jul 28, 2024
1 parent ee9410b commit eb8c93c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -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
}
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb8c93c

Please sign in to comment.