Docker : suppression de la télémtrie Astro

This commit is contained in:
Ahurac 2024-02-01 12:52:46 +01:00
parent 0a5b4dfc9b
commit 2e5934c5fd
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,8 @@
FROM node:lts-alpine AS build
WORKDIR /app
COPY . .
ARG ASTRO_TELEMETRY_DISABLE
ENV ASTRO_TELEMETRY_DISABLE $ASTRO_TELEMETRY_DISABLE
RUN npm install --production && \
npm run build

View file

@ -3,6 +3,8 @@ services:
image: ahurac-homepage:latest
build:
context: .
args:
- ASTRO_TELEMETRY_DISABLED=1
restart: unless-stopped
ports:
- "${AHURAC_PORT}:80"