Update 1.3.0
This commit is contained in:
+6
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user