Skip to content

Commit

Permalink
ci: make use of pre-built dist
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Jul 26, 2023
1 parent 2a27c7f commit 13080e1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
27 changes: 27 additions & 0 deletions dockerfiles/components/clarinet-dev.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM rust:bullseye as build

WORKDIR /src

RUN apt update && apt install -y ca-certificates pkg-config libssl-dev

RUN rustup update 1.67.0 && rustup default 1.67.0

COPY . .

RUN mkdir /out

RUN cargo build --features=telemetry --release --locked

RUN cp target/release/clarinet /out

FROM debian:bullseye-slim

RUN apt update && apt install -y libssl-dev

COPY --from=build /out/ /bin/

WORKDIR /workspace

ENV CLARINET_MODE_CI=1

ENTRYPOINT ["clarinet"]
20 changes: 2 additions & 18 deletions dockerfiles/components/clarinet.dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
FROM rust:bullseye as build

WORKDIR /src

RUN apt update && apt install -y ca-certificates pkg-config libssl-dev

RUN rustup update 1.59.0 && rustup default 1.59.0

COPY . .

RUN mkdir /out

RUN cargo build --features=telemetry --release --locked

RUN cp target/release/clarinet /out

FROM debian:bullseye-slim

RUN apt update && apt install -y libssl-dev

COPY --from=build /out/ /bin/
COPY clarinet /bin/

WORKDIR /workspace

ENV CLARINET_MODE_CI=1

ENTRYPOINT ["clarinet"]
ENTRYPOINT ["clarinet"]

0 comments on commit 13080e1

Please sign in to comment.