Skip to content

Commit 69eac2b

Browse files
committed
fix: reduce Herbatika Docker build resource usage
1 parent b712e83 commit 69eac2b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/herbatika/next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const nextConfig: NextConfig = {
5252

5353
experimental: {
5454
typedEnv: true,
55+
cpus: 1,
56+
webpackMemoryOptimizations: true,
5557
},
5658
};
5759

docker/development/herbatika/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-slim AS base
1+
FROM node:24-slim AS base
22
ENV PNPM_HOME="/pnpm"
33
ENV PATH="$PNPM_HOME:$PATH"
44
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
@@ -47,10 +47,10 @@ RUN --mount=type=cache,id=pnpm-store-herbatika,target=/pnpm/store \
4747
pnpm install --store-dir=/pnpm/store --offline --frozen-lockfile --ignore-scripts --filter=herbatica... && \
4848
pnpm --filter=@techsio/storefront-data build && \
4949
pnpm --filter=@techsio/ui-kit build && \
50-
pnpm --filter=herbatica build && \
50+
pnpm --filter=herbatica exec next build --webpack && \
5151
test -f apps/herbatika/.next/BUILD_ID
5252

53-
FROM node:22-slim AS prod
53+
FROM node:24-slim AS prod
5454

5555
RUN apt-get update && apt-get install -y curl --no-install-recommends && \
5656
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)