Changing template dir again

This commit is contained in:
Finley Ghosh 2026-01-21 20:05:08 +11:00
parent b4745de5cb
commit 7b018bdbcc
5 changed files with 20 additions and 2 deletions

View file

@ -21,7 +21,8 @@ ENV CHROME_BIN=/usr/bin/chromium-browser \
WORKDIR /app
COPY --from=builder /app/server .
COPY --from=builder /app/vault .
COPY go/internal/cmc/pdf/templates ./templates
COPY go/templates ./templates
COPY go/internal/cmc/pdf/templates ./templates/pdf
COPY go/static ./static
COPY go/.env.example .env
EXPOSE 8082

View file

@ -19,7 +19,8 @@ ENV CHROME_BIN=/usr/bin/chromium-browser \
WORKDIR /app
COPY --from=builder /app/server .
COPY go/internal/cmc/pdf/templates ./templates
COPY go/templates ./templates
COPY go/internal/cmc/pdf/templates ./templates/pdf
COPY go/static ./static
COPY go/.env.example .env
EXPOSE 8082

View file

@ -118,6 +118,14 @@ func (g *HTMLDocumentGenerator) BuildInvoiceHTML(data *InvoicePDFData, totalPage
filepath.Join("go", "internal", "cmc", "pdf", "templates", "invoice.html"),
filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"),
},
{
filepath.Join("templates", "pdf", "invoice.html"),
filepath.Join("templates", "pdf", "header.html"),
},
{
"/app/templates/pdf/invoice.html",
"/app/templates/pdf/header.html",
},
{
filepath.Join("templates", "invoice.html"),
filepath.Join("templates", "header.html"),

View file

@ -168,6 +168,14 @@ func (g *HTMLDocumentGenerator) BuildQuoteHTML(data *QuotePDFData, totalPages in
filepath.Join("go", "internal", "cmc", "pdf", "templates", "quote.html"),
filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"),
},
{
filepath.Join("templates", "pdf", "quote.html"),
filepath.Join("templates", "pdf", "header.html"),
},
{
"/app/templates/pdf/quote.html",
"/app/templates/pdf/header.html",
},
{
filepath.Join("templates", "quote.html"),
filepath.Join("templates", "header.html"),

BIN
go/server

Binary file not shown.