Skip to content

Commit 65166d1

Browse files
fix: docker ngnix version
1 parent cf84ade commit 65166d1

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

apps/admin/Dockerfile.admin

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,20 @@ COPY .gitignore .gitignore
6262
COPY --from=builder /app/out/json/ .
6363
COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
6464

65-
# Fetch dependencies to cache store, then install offline with dev deps
66-
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
65+
# Copy full directory structure before fetch to ensure all package.json files are available
6766
COPY --from=builder /app/out/full/ .
6867
COPY turbo.json turbo.json
68+
69+
# Fetch dependencies to cache store, then install offline with dev deps
70+
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
6971
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store --prod=false
7072

7173
# Build only the admin package
7274
RUN pnpm turbo run build --filter=admin
7375

7476
# =========================================================================== #
7577

76-
FROM nginx:1.27-alpine AS production
78+
FROM nginx:1.29-alpine AS production
7779

7880
COPY apps/admin/nginx/nginx.conf /etc/nginx/nginx.conf
7981
COPY --from=installer /app/apps/admin/build/client /usr/share/nginx/html/god-mode

apps/live/Dockerfile.live

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ COPY .gitignore .gitignore
3434
COPY --from=builder /app/out/json/ .
3535
COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
3636
RUN corepack enable pnpm
37-
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
3837

39-
# Build the project and its dependencies
38+
# Copy full directory structure before fetch to ensure all package.json files are available
4039
COPY --from=builder /app/out/full/ .
4140
COPY turbo.json turbo.json
41+
42+
# Fetch dependencies to cache store, then install offline with dev deps
43+
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
4244
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store
4345

4446
ENV TURBO_TELEMETRY_DISABLED=1

apps/space/Dockerfile.space

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ COPY .gitignore .gitignore
6363
COPY --from=builder /app/out/json/ .
6464
COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
6565

66-
# Fetch dependencies to cache store, then install offline with dev deps
67-
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
66+
# Copy full directory structure before fetch to ensure all package.json files are available
6867
COPY --from=builder /app/out/full/ .
6968
COPY turbo.json turbo.json
69+
70+
# Fetch dependencies to cache store, then install offline with dev deps
71+
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
7072
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store --prod=false
7173

7274
# Build only the space package

apps/web/Dockerfile.web

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ COPY .gitignore .gitignore
3434
COPY --from=builder /app/out/json/ .
3535
COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
3636
RUN corepack enable pnpm
37-
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
3837

39-
# Build the project
38+
# Copy full directory structure before fetch to ensure all package.json files are available
4039
COPY --from=builder /app/out/full/ .
4140
COPY turbo.json turbo.json
41+
42+
# Fetch dependencies to cache store, then install offline with dev deps
43+
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
4244
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store
4345

4446
ARG VITE_API_BASE_URL=""

0 commit comments

Comments
 (0)