mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-04 12:02:55 +00:00
24 lines
758 B
Docker
24 lines
758 B
Docker
# First transient image to build compute_tools binaries
|
|
# NB: keep in sync with rust image version in .circle/config.yml
|
|
|
|
#FROM zimg/rust:1.58 AS rust-build
|
|
FROM zenithdb/build:buster-20220414 AS rust-build
|
|
|
|
WORKDIR /zenith
|
|
|
|
ARG CACHEPOT_BUCKET=zenith-rust-cachepot
|
|
ARG AWS_ACCESS_KEY_ID
|
|
ARG AWS_SECRET_ACCESS_KEY
|
|
|
|
COPY . .
|
|
|
|
#RUN cargo build -p compute_tools --release && cachepot -s
|
|
ENV RUSTC_WRAPPER /usr/local/cargo/bin/cachepot
|
|
RUN cargo build -p compute_tools --release && /usr/local/cargo/bin/cachepot -s
|
|
|
|
# Final image that only has one binary
|
|
FROM debian:buster-slim
|
|
|
|
#COPY --from=rust-build /home/circleci/project/target/release/zenith_ctl /usr/local/bin/zenith_ctl
|
|
COPY --from=rust-build /zenith/target/release/zenith_ctl /usr/local/bin/zenith_ctl
|