normogen/backend/docker/Dockerfile.dev
goose 860c2dc439 Fix: Use Rust latest (1.85+) for edition2024 support
Our dependencies (time-core, getrandom, uuid, etc.) now require
Rust 1.85+ for edition2024 support.

Changes:
- Dockerfile.dev: Updated to rust:latest
- Dockerfile.prod: Updated to rust:latest for builder stage

This resolves the edition2024 compilation errors.
2026-02-15 12:24:51 -03:00

9 lines
254 B
Text

FROM rust:latest
WORKDIR /app
RUN apk add --no-cache musl-dev pkgconf openssl-dev curl wget git pkgconfig
COPY Cargo.toml ./
RUN mkdir src && echo 'fn main() {}' > src/main.rs
RUN cargo build && rm -rf src
COPY src ./src
EXPOSE 8000
CMD ["cargo", "run"]