Docker compose Update

This commit is contained in:
2026-04-05 00:38:52 -04:00
parent 0efd9b8eb8
commit 128a73d5e1
3 changed files with 13 additions and 5 deletions
+8
View File
@@ -0,0 +1,8 @@
node_modules
.svelte-kit
build
server/target
typst
preview
.git
.vscode
+4 -4
View File
@@ -2,15 +2,15 @@
FROM node:20-alpine AS frontend-builder FROM node:20-alpine AS frontend-builder
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm i
COPY . . COPY . .
RUN npm run build RUN npm run build
# Build Backend # Build Backend
FROM rust:1.82-alpine AS backend-builder FROM rust:alpine AS backend-builder
WORKDIR /app WORKDIR /app
RUN apk add --no-cache musl-dev sqlite-dev openssl-dev pkgconfig RUN apk add --no-cache musl-dev sqlite-dev openssl-dev pkgconfig git
COPY typst/ typst/ RUN git clone -b v0.14.2 --single-branch https://github.com/typst/typst.git typst
COPY server/Cargo.* server/ COPY server/Cargo.* server/
COPY server/src server/src COPY server/src server/src
WORKDIR /app/server WORKDIR /app/server
+1 -1
View File
@@ -21,7 +21,7 @@ futures-util = "0.3"
ecow = "0.2" ecow = "0.2"
typst = { version = "0.14.2", path = "../typst/crates/typst" } typst = { version = "0.14.2", path = "../typst/crates/typst" }
typst-kit = { path = "../typst/crates/typst-kit", features = ["system-downloader", "system-packages", "embedded-fonts"] } typst-kit = { path = "../typst/crates/typst-kit", features = ["downloads", "packages", "embed-fonts"] }
typst-layout = { path = "../typst/crates/typst-layout" } typst-layout = { path = "../typst/crates/typst-layout" }
typst-pdf = { path = "../typst/crates/typst-pdf" } typst-pdf = { path = "../typst/crates/typst-pdf" }
typst-render = { path = "../typst/crates/typst-render" } typst-render = { path = "../typst/crates/typst-render" }