mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
fix(docker): use --no-frozen-lockfile in all web Dockerfiles
After extensive package restructuring (deletions, consolidations, new packages), the frozen lockfile causes resolution failures in Docker. Use --no-frozen-lockfile until lockfile stabilizes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
dbf7121a43
commit
16367384c7
19 changed files with 20 additions and 20 deletions
|
|
@ -53,7 +53,7 @@ COPY apps/calendar/packages/shared ./apps/calendar/packages/shared
|
|||
COPY apps/calendar/apps/web ./apps/calendar/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ COPY apps/chat/packages/chat-types ./apps/chat/packages/chat-types
|
|||
COPY apps/chat/apps/web ./apps/chat/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ COPY packages/shared-vite-config ./packages/shared-vite-config
|
|||
COPY apps/citycorners/apps/web ./apps/citycorners/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ COPY apps/clock/packages/shared ./apps/clock/packages/shared
|
|||
COPY apps/clock/apps/web ./apps/clock/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ COPY packages/subscriptions ./packages/subscriptions
|
|||
COPY apps/contacts/apps/web ./apps/contacts/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ COPY apps/inventar/apps/web ./apps/inventar/apps/web
|
|||
|
||||
# Install app-specific dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
|
||||
pnpm install --frozen-lockfile --ignore-scripts
|
||||
pnpm install --no-frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build the web app
|
||||
WORKDIR /app/apps/inventar/apps/web
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ COPY packages/wallpaper-generator ./packages/wallpaper-generator
|
|||
COPY apps/manacore/apps/web ./apps/manacore/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ COPY packages/subscriptions ./packages/subscriptions
|
|||
COPY apps/manadeck/apps/web ./apps/manadeck/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ COPY apps/mukke/packages/shared ./apps/mukke/packages/shared
|
|||
COPY apps/mukke/apps/web ./apps/mukke/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ COPY apps/nutriphi/packages/shared ./apps/nutriphi/packages/shared
|
|||
COPY apps/nutriphi/apps/web ./apps/nutriphi/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-auth
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ COPY apps/photos/packages/shared ./apps/photos/packages/shared
|
|||
COPY apps/photos/apps/web ./apps/photos/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ COPY apps/picture/packages/shared ./apps/picture/packages/shared
|
|||
COPY apps/picture/apps/web ./apps/picture/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ COPY packages/shared-icons ./packages/shared-icons
|
|||
COPY apps/playground/apps/web ./apps/playground/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-auth
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ COPY apps/presi/packages/shared ./apps/presi/packages/shared
|
|||
COPY apps/presi/apps/web ./apps/presi/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-auth
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ COPY packages/shared-vite-config ./packages/shared-vite-config
|
|||
COPY apps/skilltree/apps/web ./apps/skilltree/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ COPY packages/subscriptions ./packages/subscriptions
|
|||
COPY apps/storage/apps/web ./apps/storage/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ COPY apps/todo/apps/web ./apps/todo/apps/web
|
|||
|
||||
# Install app-specific dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
|
||||
pnpm install --frozen-lockfile --ignore-scripts
|
||||
pnpm install --no-frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build the web app
|
||||
WORKDIR /app/apps/todo/apps/web
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ COPY apps/zitare/packages/content ./apps/zitare/packages/content
|
|||
COPY apps/zitare/apps/web ./apps/zitare/apps/web
|
||||
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-vite-config
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
# FROM sveltekit-base:local AS builder
|
||||
# COPY apps/myapp/packages/shared ./apps/myapp/packages/shared
|
||||
# COPY apps/myapp/apps/web ./apps/myapp/apps/web
|
||||
# RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
# RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
|
||||
# WORKDIR /app/apps/myapp/apps/web
|
||||
# RUN pnpm exec svelte-kit sync
|
||||
# RUN NODE_OPTIONS="--max-old-space-size=4096" pnpm build
|
||||
|
|
@ -68,7 +68,7 @@ COPY packages/wallpaper-generator ./packages/wallpaper-generator
|
|||
|
||||
# Install dependencies (shared packages only - app deps added later)
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
|
||||
pnpm install --frozen-lockfile --ignore-scripts
|
||||
pnpm install --no-frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages in dependency order
|
||||
RUN cd packages/shared-vite-config && pnpm build \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue