Fix backend build toolchain and Debian base
All checks were successful
docker-images / build-and-push (admin, admin, termi-astro-admin, admin/Dockerfile) (push) Successful in 1m5s
docker-images / build-and-push (backend, backend, termi-astro-backend, backend/Dockerfile) (push) Successful in 30m13s
docker-images / build-and-push (frontend, frontend, termi-astro-frontend, frontend/Dockerfile) (push) Successful in 1m17s

This commit is contained in:
2026-04-01 02:02:52 +08:00
parent a305817b78
commit 669b79cc95
3 changed files with 8 additions and 4 deletions

View File

@@ -3,7 +3,8 @@
[package] [package]
name = "termi-api" name = "termi-api"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2024"
rust-version = "1.85"
publish = false publish = false
default-run = "termi_api-cli" default-run = "termi_api-cli"

View File

@@ -1,4 +1,4 @@
FROM rust:1.91.1-bookworm AS builder FROM rust:1.94-trixie AS builder
WORKDIR /app WORKDIR /app
COPY Cargo.toml Cargo.lock ./ COPY Cargo.toml Cargo.lock ./
@@ -10,9 +10,9 @@ COPY assets assets
RUN cargo build --release --locked --bin termi_api-cli RUN cargo build --release --locked --bin termi_api-cli
FROM debian:bookworm-slim AS runtime FROM debian:trixie-slim AS runtime
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates tzdata wget \ && apt-get install -y --no-install-recommends ca-certificates libgomp1 libstdc++6 tzdata wget \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
WORKDIR /app WORKDIR /app

View File

@@ -0,0 +1,3 @@
[toolchain]
channel = "1.94.1"
components = ["rustfmt", "clippy"]