Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(docker): fix self-hosting Docker build failures
pasmudea15f9434184
diff --git a/.gitattributes b/.gitattributesnew file mode 100644index 0000000000..5528041dbc--- /dev/null+++ b/.gitattributes@@ -0,0 +1,6 @@+# Ensure shell scripts always use LF line endings (needed for Docker on Windows)+*.sh text eol=lf+docker/entrypoint.sh text eol=lf++# Default behavior+* text=autodiff --git a/Dockerfile b/Dockerfileindex cfbd979087..2978968e53 100644--- a/Dockerfile+++ b/Dockerfile@@ -31,7 +31,7 @@ COPY --from=builder /src/server/bin/multica .COPY --from=builder /src/server/bin/migrate .COPY server/migrations/ ./migrations/COPY docker/entrypoint.sh .-RUN chmod +x entrypoint.sh+RUN sed -i 's/\r$//' entrypoint.sh && chmod +x entrypoint.shEXPOSE 8080diff --git a/Dockerfile.web b/Dockerfile.webindex 28efaf4a7a..143503b803 100644--- a/Dockerfile.web+++ b/Dockerfile.web@@ -6,7 +6,7 @@ RUN corepack enable && corepack prepare [email protected] --activateWORKDIR /app# Copy workspace config and all package.json files for dependency resolution-COPY pnpm-lock.yaml pnpm-workspace.yaml package.json turbo.json ./+COPY pnpm-lock.yaml pnpm-workspace.yaml package.json turbo.json .npmrc ./COPY apps/web/package.json apps/web/COPY packages/core/package.json packages/core/COPY packages/ui/package.json packages/ui/@@ -23,18 +23,17 @@ RUN corepack enable && corepack prepare [email protected] --activateWORKDIR /app-COPY --from=deps /app/node_modules ./node_modules-COPY --from=deps /app/apps/web/node_modules ./apps/web/node_modules-COPY --from=deps /app/packages/core/node_modules ./packages/core/node_modules-COPY --from=deps /app/packages/ui/node_modules ./packages/ui/node_modules-COPY --from=deps /app/packages/views/node_modules ./packages/views/node_modules-COPY --from=deps /app/packages/eslint-config/node_modules ./packages/eslint-config/node_modules+# Copy installed dependencies (preserves pnpm symlink structure)+COPY --from=deps /app ./# Copy sourceCOPY package.json turbo.json pnpm-workspace.yaml ./COPY apps/web/ apps/web/COPY packages/ packages/+# Re-link after source overlay (fixes any symlinks overwritten by COPY)+RUN pnpm install --frozen-lockfile --offline+# Set build-time env: tells Next.js rewrites to proxy API calls to the backend serviceARG REMOTE_API_URL=http://backend:8080ENV REMOTE_API_URL=$REMOTE_API_URL