we have a rendered PDF!

TODOS:

* actually apply styles to PDF
* better error handling on client side
This commit is contained in:
2024-11-23 23:49:24 -06:00
parent 369f7e8946
commit a90b3c888e
6 changed files with 60 additions and 12 deletions

View File

@@ -1,11 +1,16 @@
FROM node:22.11.0-alpine AS builder
FROM node:22.11.0-bookworm-slim AS builder
WORKDIR /app
COPY . .
RUN npm install && npm run build
FROM node:22.11.0-alpine AS runner
FROM node:22.11.0-bookworm-slim AS runner
LABEL maintainer="Nicola Clark <nicola@slottedspoon.dev>"
EXPOSE 3000
ENV LANG=C.UTF-8
RUN apt-get update && \
apt-get install -y pandoc texlive && \
rm -rf /var/lib/apt/lists/*
RUN useradd -u 9999 pdoc
WORKDIR /app
COPY package.json package-lock.json ./
COPY --from=builder /app/build ./build