Skip to content

📈 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!

test env vars

Alper Alkanc83054d96bc2
diff --git a/Dockerfile b/Dockerfile
index 127e73d3c..1dbc7fa97 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,10 +1,10 @@
# Stage 1
FROM node:lts-alpine as build
-ENV TZ=Etc/UTC
-ENV REACT_APP_API_URL="https://example.com/api/"
-ENV CHOKIDAR_USEPOLLING=true
-ENV REACT_APP_SELFHOSTED=true
-ENV GENERATE_SOURCEMAP=false
+ENV TZ=Etc/UTC \
+ REACT_APP_API_URL="https://example.com/api/" \
+ CHOKIDAR_USEPOLLING=true \
+ REACT_APP_SELFHOSTED=true \
+ GENERATE_SOURCEMAP=false
RUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtime
WORKDIR /app
COPY . .
@@ -12,7 +12,11 @@ RUN npm install -g pnpm && pnpm install && npm run build
# Stage 2
FROM nginx:stable-alpine
-ENV TZ=Etc/UTC
+ENV TZ=Etc/UTC \
+ REACT_APP_API_URL="https://example.com/api/" \
+ CHOKIDAR_USEPOLLING=true \
+ REACT_APP_SELFHOSTED=true \
+ GENERATE_SOURCEMAP=false
RUN rm -rf /usr/share/nginx/html/*
RUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtime
COPY --from=build /app/deployment/default.conf /etc/nginx/conf.d/default.conf