mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
fix(docker-compose): rebase build contexts and env/volume paths onto apps/api and apps/web (cont'd)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+9
-3
@@ -14,11 +14,17 @@ COPY --from=typst /usr/bin/typst /usr/local/bin/typst
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install production dependencies only
|
||||
# Workspace manifests first (cache-friendly), then a filtered install —
|
||||
# pnpm needs every workspace package's manifest present to resolve the
|
||||
# graph even though only apps/api's deps get installed here.
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
COPY apps/api/package.json ./apps/api/package.json
|
||||
COPY apps/web/package.json ./apps/web/package.json
|
||||
RUN pnpm install --frozen-lockfile --filter api...
|
||||
|
||||
COPY . .
|
||||
COPY apps/api ./apps/api
|
||||
|
||||
WORKDIR /app/apps/api
|
||||
|
||||
RUN chmod +x docker-entrypoint.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user