Skip to content

Commit a7de354

Browse files
committed
fix: scope Herbatika Docker build context
1 parent 69eac2b commit a7de354

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

apps/herbatika/next.config.ts

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

5353
experimental: {
5454
typedEnv: true,
55-
cpus: 1,
56-
webpackMemoryOptimizations: true,
5755
},
5856
};
5957

docker/development/herbatika/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:24-slim AS base
1+
FROM node:22-slim AS base
22
ENV PNPM_HOME="/pnpm"
33
ENV PATH="$PNPM_HOME:$PATH"
44
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
@@ -23,7 +23,10 @@ RUN --mount=type=cache,id=pnpm-store-herbatika,target=/pnpm/store \
2323
corepack install && \
2424
pnpm --filter=herbatica... fetch --store-dir=/pnpm/store --frozen-lockfile
2525

26-
COPY . .
26+
COPY tsconfig.base.json tsconfig.json nx.json ./
27+
COPY apps/herbatika ./apps/herbatika
28+
COPY libs/ui ./libs/ui
29+
COPY libs/storefront-data ./libs/storefront-data
2730

2831
ARG NEXT_PUBLIC_MEDUSA_BACKEND_URL
2932
ARG NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY
@@ -47,10 +50,10 @@ RUN --mount=type=cache,id=pnpm-store-herbatika,target=/pnpm/store \
4750
pnpm install --store-dir=/pnpm/store --offline --frozen-lockfile --ignore-scripts --filter=herbatica... && \
4851
pnpm --filter=@techsio/storefront-data build && \
4952
pnpm --filter=@techsio/ui-kit build && \
50-
pnpm --filter=herbatica exec next build --webpack && \
53+
pnpm --filter=herbatica build && \
5154
test -f apps/herbatika/.next/BUILD_ID
5255

53-
FROM node:24-slim AS prod
56+
FROM node:22-slim AS prod
5457

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

0 commit comments

Comments
 (0)