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.
This commit is contained in:
goose 2026-02-15 11:32:27 -03:00
parent ea684c4a4b
commit 39f9ff38d0
2 changed files with 4 additions and 4 deletions

View file

@ -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"]

View file

@ -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"]