diff --git a/img/docker-compose.yml b/img/docker-compose.yml index 7fbf2339..b2e255cd 100644 --- a/img/docker-compose.yml +++ b/img/docker-compose.yml @@ -15,3 +15,7 @@ services: pip: image: ghcr.io/tyhal/crie-dep-pip build: pip + # rust tools + rust: + image: ghcr.io/tyhal/crie-dep-rust + build: rust \ No newline at end of file diff --git a/img/go/Dockerfile b/img/go/Dockerfile index 79e2205a..b94d4f0a 100644 --- a/img/go/Dockerfile +++ b/img/go/Dockerfile @@ -7,7 +7,7 @@ RUN go install github.com/mgechev/revive@v1.14.0 FROM go_layer AS protolint_layer RUN go install github.com/yoheimuta/protolint/cmd/protolint@v0.56.4 -FROM go_layer AS run_layer +FROM alpine:3.23.4 RUN adduser -D standards diff --git a/img/rust/Dockerfile b/img/rust/Dockerfile new file mode 100644 index 00000000..5e4f0ee6 --- /dev/null +++ b/img/rust/Dockerfile @@ -0,0 +1,17 @@ +FROM rust:1.95.0-alpine3.23 AS rust_layer +RUN apk --no-cache add llvm21-dev clang21-dev +# clang21-static llvm21-dev + +FROM rust_layer AS rubyfmt_layer +ADD https://github.com/fables-tales/rubyfmt.git#v0.13.0 /tmp/rubyfmt +WORKDIR /tmp/rubyfmt +RUN cargo build --release + +FROM alpine:3.23.4 + +RUN adduser -D standards + +# [ Golang ] +COPY --from=rubyfmt_layer /tmp/rubyfmt/release/rubyfmt-main /bin/revive + +USER standards \ No newline at end of file