mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 21:29:12 +00:00
Push telemetry to Posthog to grok Khoj usage
This commit is contained in:
@@ -6,5 +6,10 @@ LABEL org.opencontainers.image.source https://github.com/debanjum/khoj
|
||||
COPY requirements.txt /tmp/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
||||
|
||||
# Set Environment Variables
|
||||
RUN --mount=type=secret,id=POSTHOG_API_KEY \
|
||||
export POSTHOG_API_KEY=$(cat /run/secrets/POSTHOG_API_KEY) && \
|
||||
echo "POSTHOG_API_KEY=$POSTHOG_API_KEY" > /app/.env
|
||||
|
||||
# Copy Application
|
||||
COPY telemetry.py /app/main.py
|
||||
|
||||
Reference in New Issue
Block a user