add dockerfile and document

This commit is contained in:
Bruce Röttgers
2025-04-26 22:20:38 +02:00
parent 804ffeb82b
commit e606e45bf6
3 changed files with 20 additions and 14 deletions

View File

@@ -1,12 +1,10 @@
FROM node:22
FROM ghcr.io/astral-sh/uv:debian
WORKDIR /app
COPY package.json .
COPY package-lock.json .
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen
RUN npm install
COPY . .
COPY index.ts .
CMD [ "node", "--max-old-space-size=4096", "--experimental-strip-types", "index.ts" ]
CMD ["uv", "run", "transform-documents.py"]