From 39f9ff38d0c29982eabfd77824a523e39a812c08 Mon Sep 17 00:00:00 2001 From: goose Date: Sun, 15 Feb 2026 11:32:27 -0300 Subject: [PATCH] Fix: Update Rust to 1.83 and fix Dockerfile CMD syntax Changes: - Updated Rust from 1.75 to 1.83 in both Dockerfiles - Fixed CMD syntax: changed single quotes to double quotes (JSON format) Before: CMD ['cargo-watch', '-x', 'run'] After: CMD [cargo-watch, -x, run] This fixes the cargo-watch compilation error that required edition2024. Rust 1.83 supports all current crate features and editions. --- backend/docker/Dockerfile | 4 ++-- backend/docker/Dockerfile.dev | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/docker/Dockerfile b/backend/docker/Dockerfile index de5e92f..5d50ac9 100644 --- a/backend/docker/Dockerfile +++ b/backend/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.75-alpine AS builder +FROM rust:1.83-alpine AS builder WORKDIR /app RUN apk add --no-cache musl-dev pkgconf openssl-dev COPY Cargo.toml ./ @@ -15,4 +15,4 @@ RUN addgroup -g 1000 normogen && adduser -D -u 1000 -G normogen normogen && chow USER normogen EXPOSE 8000 HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:8000/health || exit 1 -CMD ['./normogen-backend'] +CMD ["./normogen-backend"] diff --git a/backend/docker/Dockerfile.dev b/backend/docker/Dockerfile.dev index 72f8e7e..9b578cd 100644 --- a/backend/docker/Dockerfile.dev +++ b/backend/docker/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM rust:1.75-alpine +FROM rust:1.83-alpine WORKDIR /app RUN apk add --no-cache musl-dev pkgconf openssl-dev curl wget git pkgconfig RUN cargo install cargo-watch @@ -7,4 +7,4 @@ RUN mkdir src && echo 'fn main() {}' > src/main.rs RUN cargo build && rm -rf src COPY src ./src EXPOSE 8000 -CMD ['cargo-watch', '-x', 'run'] +CMD ["cargo-watch", "-x", "run"]