Compare commits

...

2 Commits

Author SHA1 Message Date
lebaudantoine c7b05a4487 ⚡️(devx) switch devstack to node:22-alpine
The devstack was pulling the full `node:22` image, around 1.6 GB.
Switch to `node:22-alpine`, which is much smaller, to speed up the
devstack bootstrap time and reduce disk usage.
2026-10-02 15:46:34 +02:00
lebaudantoine 971a7295ca ⚡️(devx) use a single Redis image version in the devstack
The devstack was pulling two different versions of the Redis image.
Align everything on a single version to save a few MB of network
bandwidth when bootstrapping the stack.

Late-night minor optimization.
2026-10-01 16:38:31 +02:00
5 changed files with 9 additions and 10 deletions
+2 -3
View File
@@ -37,14 +37,13 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked --no-dev uv sync --locked --no-dev
# ---- mails ---- # ---- mails ----
FROM node:22 AS mail-builder FROM node:22-alpine AS mail-builder
COPY ./src/mail /mail/app COPY ./src/mail /mail/app
WORKDIR /mail/app WORKDIR /mail/app
RUN yarn install --frozen-lockfile && \ RUN npm ci --ignore-scripts && npm run build
yarn build
# ---- static link collector ---- # ---- static link collector ----
+2 -2
View File
@@ -172,7 +172,7 @@ services:
working_dir: /app working_dir: /app
node: node:
image: node:22 image: node:22-alpine
user: "${DOCKER_USER:-1000}" user: "${DOCKER_USER:-1000}"
environment: environment:
HOME: /tmp HOME: /tmp
@@ -271,7 +271,7 @@ services:
- /app/.venv - /app/.venv
redis-summary: redis-summary:
image: redis image: redis:5
ports: ports:
- "6379:6379" - "6379:6379"
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/bin/sh
set -eo pipefail set -e
# Run html-to-text to convert all html files to text files # Run html-to-text to convert all html files to text files
DIR_MAILS="../backend/core/templates/mail/" DIR_MAILS="../backend/core/templates/mail/"
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh
# Run mjml command to convert all mjml templates to html files # Run mjml command to convert all mjml templates to html files
DIR_MAILS="../backend/core/templates/mail/html/" DIR_MAILS="../backend/core/templates/mail/html/"
+2 -2
View File
@@ -9,8 +9,8 @@
}, },
"private": true, "private": true,
"scripts": { "scripts": {
"build-mjml-to-html": "bash ./bin/mjml-to-html", "build-mjml-to-html": "sh ./bin/mjml-to-html",
"build-html-to-plain-text": "bash ./bin/html-to-plain-text", "build-html-to-plain-text": "sh ./bin/html-to-plain-text",
"build": "npm run build-mjml-to-html && npm run build-html-to-plain-text" "build": "npm run build-mjml-to-html && npm run build-html-to-plain-text"
}, },
"volta": { "volta": {