1
0
Fork 0
forked from gorb/backend

ci: test ci

This commit is contained in:
Radical 2025-06-01 19:38:19 +02:00
parent ee8211a321
commit 315a8b9954
3 changed files with 17 additions and 26 deletions

View file

@ -1,16 +1,17 @@
FROM rust:bookworm AS builder
FROM --platform=linux/amd64 debian:12-slim AS prep
WORKDIR /src
COPY . .
RUN cargo build --release
COPY target/release/backend backend-amd64
COPY target/aarch64-unknown-linux-gnu/release/backend backend-arm64
FROM debian:12-slim
ARG TARGETARCH
RUN apt update -y && apt install libssl3 ca-certificates -y && rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/*
COPY --from=builder /src/target/release/backend /usr/bin/gorb-backend
COPY --from=prep /src/backend-${TARGETARCH} /usr/bin/gorb-backend
COPY entrypoint.sh /usr/bin/entrypoint.sh