Skip to content

Commit 96b6782

Browse files
authored
Merge pull request #82 from code0-tech/78-bundle-definitions
Bundle standard definitions into draco and taurus images
2 parents 32d4daa + ef8fca7 commit 96b6782

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

container/draco/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ WORKDIR /draco
77
COPY projects/draco .
88
WORKDIR /draco/adapters/$VARIANT
99
RUN cargo build --release
10+
RUN apk add openssl-dev openssl-libs-static pkgconfig && cargo install code0-cli && code0-cli download -f $VARIANT
1011

1112
FROM alpine:3.22
1213
ARG VARIANT
1314

1415
RUN apk --update add libc6-compat
1516
COPY --from=builder /draco/target/release/$VARIANT /draco
17+
COPY --from=builder /draco/adapters/$VARIANT/definitions /definitions
1618

1719
CMD ["/draco"]

container/taurus/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ FROM ghcr.io/code0-tech/reticulum/ci-builds/rust:$RETICULUM_IMAGE_TAG AS builder
55
WORKDIR /taurus
66
COPY projects/taurus .
77
RUN cargo build --release
8+
RUN apk add openssl-dev openssl-libs-static pkgconfig && cargo install code0-cli && code0-cli download -f standard
89

910
FROM alpine:3.22
1011

1112
RUN apk --update add libc6-compat
12-
COPY --from=builder /taurus/target/release/taurus .
13+
COPY --from=builder /taurus/target/release/taurus /taurus
14+
COPY --from=builder /taurus/definitions /definitions
1315

1416
CMD ["/taurus"]

0 commit comments

Comments
 (0)