diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 7db07ee..4594ff3 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -3,7 +3,8 @@ [package] name = "termi-api" version = "0.1.0" -edition = "2021" +edition = "2024" +rust-version = "1.85" publish = false default-run = "termi_api-cli" diff --git a/backend/Dockerfile b/backend/Dockerfile index 4237642..afbf8ee 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.91.1-bookworm AS builder +FROM rust:1.94-trixie AS builder WORKDIR /app COPY Cargo.toml Cargo.lock ./ @@ -10,9 +10,9 @@ COPY assets assets 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 \ - && 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/* WORKDIR /app diff --git a/backend/rust-toolchain.toml b/backend/rust-toolchain.toml new file mode 100644 index 0000000..32c68ee --- /dev/null +++ b/backend/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.94.1" +components = ["rustfmt", "clippy"]