chore: go back to Alpine dynamic linking since I think it's the best I can do
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
ARG RUST_TAG=1.94.1-alpine3.23
|
||||
FROM rust:${RUST_TAG} AS builder
|
||||
ARG ALPINE_TAG=3.23.4
|
||||
FROM alpine:${ALPINE_TAG} AS builder
|
||||
|
||||
ARG BUILD_BASE_VERSION=0.5-r3
|
||||
RUN --mount=type=cache,sharing=locked,target=/var/cache/apk \
|
||||
@@ -37,7 +37,6 @@ ARG PROTOC_VERSION=31.1-r1
|
||||
RUN --mount=type=cache,sharing=locked,target=/var/cache/apk \
|
||||
apk add --update protoc=${PROTOC_VERSION}
|
||||
|
||||
ENV CXXFLAGS="-include cstdint"
|
||||
RUN \
|
||||
# This one would be nice if it worked:
|
||||
# --mount=type=bind,source=.,target=/root/app \
|
||||
@@ -53,7 +52,8 @@ RUN \
|
||||
cargo build --release && \
|
||||
cp target/release/fomo-reducer /root/program
|
||||
|
||||
FROM scratch AS runner
|
||||
ARG ALPINE_TAG=3.23.4
|
||||
FROM alpine:${ALPINE_TAG} AS runner
|
||||
|
||||
COPY --from=builder /root/program /program
|
||||
|
||||
|
||||
Reference in New Issue
Block a user