📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
test with arg
Alper Alkanfd69be2b38b2
diff --git a/Dockerfile b/Dockerfileindex 1dbc7fa97..7b21986da 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,9 +1,11 @@# Stage 1FROM node:lts-alpine as build+ARG REACT_APP_API_URL="https://example.com/api/" \+ REACT_APP_SELFHOSTED=trueENV TZ=Etc/UTC \- REACT_APP_API_URL="https://example.com/api/" \+ REACT_APP_API_URL=${REACT_APP_API_URL} \+ REACT_APP_SELFHOSTED=${REACT_APP_SELFHOSTED}} \CHOKIDAR_USEPOLLING=true \- REACT_APP_SELFHOSTED=true \GENERATE_SOURCEMAP=falseRUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtimeWORKDIR /app@@ -12,11 +14,7 @@ RUN npm install -g pnpm && pnpm install && npm run build# Stage 2FROM nginx:stable-alpine-ENV TZ=Etc/UTC \- REACT_APP_API_URL="https://example.com/api/" \- CHOKIDAR_USEPOLLING=true \- REACT_APP_SELFHOSTED=true \- GENERATE_SOURCEMAP=false+ENV TZ=Etc/UTCRUN rm -rf /usr/share/nginx/html/*RUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtimeCOPY --from=build /app/deployment/default.conf /etc/nginx/conf.d/default.conf