mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 00:08:55 +00:00
* add logo, replace zinc-observe with zincobserve * refactor: add logo, replace zinc_observe * renamed missing ones
33 lines
1.3 KiB
Docker
33 lines
1.3 KiB
Docker
FROM public.ecr.aws/docker/library/node:18.12.1-bullseye as webBuilder
|
|
WORKDIR /web
|
|
COPY ./web /web/
|
|
|
|
RUN npm install
|
|
RUN NODE_OPTIONS="--max-old-space-size=6192" npm run build
|
|
|
|
FROM public.ecr.aws/docker/library/rust:bullseye as builder
|
|
RUN apt-get update
|
|
RUN apt-get install -y protobuf-compiler
|
|
RUN apt-get install -y cmake curl
|
|
|
|
RUN rustup toolchain install nightly-2023-01-26
|
|
RUN rustup default nightly-2023-01-26
|
|
RUN rustup target add x86_64-unknown-linux-gnu
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
COPY --from=webBuilder /web/dist web/dist
|
|
|
|
# RUN cargo build --release
|
|
RUN RUSTFLAGS='-C target-feature=+aes,+avx,+avx2,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+avx512f,+avx512cd,+avx512er,+avx512bw,+avx512dq,+avx512vl' cargo build --release --features tmpcache,zo_functions --target x86_64-unknown-linux-gnu
|
|
RUN mv /app/target/x86_64-unknown-linux-gnu/release/zincobserve /app/target/release/zincobserve
|
|
|
|
FROM gcr.io/distroless/cc as runtime
|
|
# FROM public.ecr.aws/debian/debian:bullseye-slim as runtime
|
|
# RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
|
# RUN apt-get install -y curl htop iftop sysstat procps lsof net-tools
|
|
# RUN update-ca-certificates
|
|
COPY --from=builder /app/target/release/zincobserve /
|
|
COPY --from=builder /lib/x86_64-linux-gnu/liblzma.so.5 /lib/x86_64-linux-gnu/liblzma.so.5
|
|
CMD ["/zincobserve"]
|