fix: payload building issues

This commit is contained in:
2026-06-17 23:58:51 +05:30
parent d3ab5028af
commit e974313f6d
15 changed files with 264 additions and 271 deletions
+11 -9
View File
@@ -1,15 +1,17 @@
# syntax=docker/dockerfile:1.7
#
# Single-shot build image for the Astro site. The production deployment uses
# nginx:1.27-alpine with a bind mount to apps/web/dist (see docker-compose.yml),
# so the webhook can rewrite the site without rebuilding any image.
# Astro static site production image. Built and run by docker-compose.
#
# You only need this Dockerfile if you want a self-contained static site
# image (e.g. for a registry). For the normal homeserver flow, this image
# is never built.
# Multi-stage:
# deps - installs the workspace (only apps/web and apps/cms are
# needed for the web build, but we keep apps/cms/package.json
# so the workspace resolves cleanly).
# build - runs `astro build` to produce apps/web/dist.
# runtime - small nginx:1.27-alpine serving the baked-in dist/ and
# the custom nginx-default.conf.
#
# We install pnpm globally via npm to avoid corepack's strict version
# negotiation across Node 20 minor versions.
# We install pnpm via `npm install -g pnpm@9` instead of corepack so
# the version negotiation is unambiguous across Node 20 minor releases.
FROM node:20-alpine AS base
RUN npm install -g pnpm@9
@@ -30,7 +32,7 @@ RUN if [ -f pnpm-lock.yaml ]; then \
FROM deps AS build
ENV PUBLIC_PAYLOAD_API=https://cms.softvowels.example
ENV PUBLIC_SITE_URL=https://softvowels.example
ENV PAYLOAD_API_INTERNAL=http://cms:3000
ENV PAYLOAD_API_INTERNAL=http://softvowels-cms:3000
COPY apps/web ./apps/web
WORKDIR /repo/apps/web
RUN pnpm run build