Skip to content

Commit

Permalink
Fix databroker Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schildt <sebastian.schildt@de.bosch.com>
  • Loading branch information
SebastianSchildt committed May 5, 2024
1 parent a3b5729 commit 6a2469d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
# AMD is a statically linked MUSL build
FROM scratch AS target-amd64
ENV BUILDTARGET="x86_64-unknown-linux-musl"
COPY ./target/x86_64-unknown-linux-musl/release/databroker /app/databroker


# ARM64 is a statically linked GRPC build
FROM scratch AS target-arm64
ENV BUILDTARGET="aarch64-unknown-linux-musl"
COPY ./target/aarch64-unknown-linux-musl/release/databroker /app/databroker


# RISCV is a glibc build. Rust toolchain not supported for MUSL
Expand All @@ -36,18 +33,19 @@ COPY ./target/aarch64-unknown-linux-musl/release/databroker /app/databroker
# However, distorless has no RISCV support yet,
# (Nov 2023). Using debian unstable for now
FROM riscv64/debian:sid-slim as target-riscv64

ENV BUILDTARGET="riscv64gc-unknown-linux-gnu"
COPY ./target/riscv64gc-unknown-linux-gnu/release/databroker /app/databroker

# Now adding generic parts
FROM target-$TARGETARCH as target
ARG TARGETARCH


# Before running this file thirdparty files must have been created
# by build-all-targets.sh or corresponding command in buildaction
COPY ./databroker/thirdparty/ /app/thirdparty
# by build-databroker.sh or corresponding command in buildaction
COPY ./dist/$TARGETARCH/databroker /app/databroker
COPY ./dist/$TARGETARCH/sbom.json /app/sbom.json
COPY ./dist/$TARGETARCH/thirdparty-licenses/ /app/thirdparty-licenses


COPY ./data/vss-core/vss_release_3.1.1.json vss_release_3.1.1.json
COPY ./data/vss-core/vss_release_4.0.json vss_release_4.0.json
Expand Down

0 comments on commit 6a2469d

Please sign in to comment.