Allow annoNet migrations on restricted PostgreSQL

This commit is contained in:
Admin 2026-09-21 21:56:25 +00:00
parent b6e6e9cc38
commit 59047e5072

View File

@ -4,6 +4,10 @@ WORKDIR /src
COPY annonet-arrowstack-ready.zip /tmp/annonet.zip COPY annonet-arrowstack-ready.zip /tmp/annonet.zip
RUN unzip -q /tmp/annonet.zip -d /src RUN unzip -q /tmp/annonet.zip -d /src
COPY mcpAuthMiddleware.js /src/src/auth/mcpAuthMiddleware.js COPY mcpAuthMiddleware.js /src/src/auth/mcpAuthMiddleware.js
# Arrowstack's database-per-tenant runtime role intentionally cannot install
# extensions. PostgreSQL 13+ provides gen_random_uuid() in core, and annoNet
# does not use any other pgcrypto functions.
RUN sed -i '/^CREATE EXTENSION IF NOT EXISTS pgcrypto;$/d' /src/sql/001_init.sql
FROM node:22-alpine AS frontend-build FROM node:22-alpine AS frontend-build
WORKDIR /build/frontend-astro WORKDIR /build/frontend-astro