set telemetry post frontend build in standalone docker img

This commit is contained in:
Maidul Islam
2023-10-17 12:22:08 +01:00
parent 136308f299
commit fb7c7045e9
10 changed files with 53 additions and 7 deletions

View File

@@ -74,6 +74,7 @@ COPY backend/package*.json ./
RUN npm ci --only-production
COPY /backend .
COPY standalone-entrypoint.sh standalone-entrypoint.sh
RUN npm run build
# Production stage
@@ -105,6 +106,9 @@ ENV NODE_ENV production
WORKDIR /backend
CMD ["node", "build/index.js"]
ENV TELEMETRY_ENABLED true
CMD ["./standalone-entrypoint.sh"]