File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Build Stage
2- FROM rust:slim-buster AS builder
2+ FROM rust:1-alpine AS builder
33WORKDIR /build
4- RUN apt-get update && apt-get upgrade -y
5- RUN apt-get install -y libpq-dev libssl-dev protobuf-compiler pkg-config
4+ RUN apk update
5+ RUN apk upgrade
6+ ENV RUSTFLAGS="-C target-feature=-crt-static"
7+ RUN apk add llvm cmake gcc ca-certificates libc-dev pkgconfig openssl-dev protoc libpq-dev musl-dev
68COPY . .
79RUN cargo build --release
810
9- FROM rust:slim-buster
11+ FROM rust:1-alpine
1012WORKDIR /run
11- RUN apt-get update && apt-get upgrade -y
12- RUN apt-get install -y libpq-dev libssl-dev pkg-config ca-certificates
13+ RUN apk update
14+ RUN apk upgrade
15+ RUN apk add llvm cmake gcc ca-certificates libc-dev pkgconfig openssl-dev protoc libpq-dev musl-dev
1316COPY --from=builder /build/target/release/aruna_server .
1417COPY ./config/config.toml ./config/config.toml
1518CMD [ "/run/aruna_server" ]
You can’t perform that action at this time.
0 commit comments