Update 1.3.0

This commit is contained in:
2026-04-06 23:46:44 +00:00
parent 37dc7d5610
commit 9839f8609b
24 changed files with 751 additions and 192 deletions
+6 -5
View File
@@ -1,10 +1,10 @@
# Build Frontend
FROM node:20-alpine AS frontend-builder
FROM oven/bun:alpine AS frontend-builder
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN npm run build
RUN bun run build
# Build Backend
FROM rust:alpine AS backend-builder
@@ -19,7 +19,8 @@ RUN cargo build --release
# Final Runtime Image
FROM alpine:3.19
WORKDIR /app
RUN apk add --no-cache libgcc openssl pandoc
RUN apk add --no-cache libgcc openssl pandoc curl
RUN curl -L https://github.com/Myriad-Dreamin/tinymist/releases/latest/download/tinymist-alpine-x64 -o /usr/local/bin/tinymist && chmod +x /usr/local/bin/tinymist
COPY --from=frontend-builder /app/build /app/build
COPY --from=backend-builder /app/server/target/release/server /app/server
ENV PORT=3000