mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
make typst thru Dockerfile
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
FROM pandoc/typst:latest-alpine AS typst
|
||||||
|
|
||||||
FROM node:22-alpine
|
FROM node:22-alpine
|
||||||
|
|
||||||
# Enable corepack and activate pnpm
|
# Enable corepack and activate pnpm
|
||||||
@@ -6,6 +8,10 @@ RUN corepack enable && corepack prepare pnpm@11.3.0 --activate
|
|||||||
# pm2 manages the process; sequelize-cli runs migrations on startup
|
# pm2 manages the process; sequelize-cli runs migrations on startup
|
||||||
RUN npm install -g pm2 sequelize-cli
|
RUN npm install -g pm2 sequelize-cli
|
||||||
|
|
||||||
|
# Typst — compiles certificate.typ into the downloadable PDF certificate.
|
||||||
|
# Not available as an apk package, so lift the binary out of pandoc/typst.
|
||||||
|
COPY --from=typst /usr/bin/typst /usr/local/bin/typst
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install production dependencies only
|
# Install production dependencies only
|
||||||
|
|||||||
Reference in New Issue
Block a user