fix(docker): Windows entrypoint CRLF and admin invite link VITE_PLAYER_URL

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-15 16:16:01 +08:00
parent afb5c5437e
commit bb868e0ea5
7 changed files with 243 additions and 8 deletions

View File

@@ -13,6 +13,8 @@ COPY packages/shared/package.json packages/shared/
RUN pnpm install --frozen-lockfile
FROM base AS builder
ARG VITE_PLAYER_URL
ENV VITE_PLAYER_URL=${VITE_PLAYER_URL}
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/apps/api/node_modules ./apps/api/node_modules

View File

@@ -39,7 +39,8 @@ COPY --from=builder /app/apps/api/node_modules ./apps/api/node_modules
COPY uploads/banners ./uploads-default/banners
COPY docker/api/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Windows checkouts may use CRLF; strip before chmod or Linux exec fails with "no such file".
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
WORKDIR /app/apps/api
EXPOSE 3000