chore: run the program in the same image/stage as the builder (eliminating the runner) until I fix static linking

This commit is contained in:
2026-04-15 18:43:51 -04:00
parent 31adbc2027
commit dbcc155c4c

View File

@@ -1,5 +1,5 @@
ARG ALPINE_TAG=3.23.4 ARG ALPINE_TAG=3.23.4
FROM alpine:${ALPINE_TAG} AS builder FROM alpine:${ALPINE_TAG}
ARG BUILD_BASE_VERSION=0.5-r3 ARG BUILD_BASE_VERSION=0.5-r3
RUN --mount=type=cache,sharing=locked,target=/var/cache/apk \ RUN --mount=type=cache,sharing=locked,target=/var/cache/apk \
@@ -50,11 +50,6 @@ RUN \
--mount=type=cache,target=/usr/local/cargo/registry/ \ --mount=type=cache,target=/usr/local/cargo/registry/ \
cd /root/app && \ cd /root/app && \
cargo build --release && \ cargo build --release && \
cp target/release/fomo-reducer /root/program cp target/release/fomo-reducer /program
ARG ALPINE_TAG=3.23.4
FROM alpine:${ALPINE_TAG} AS runner
COPY --from=builder /root/program /program
ENTRYPOINT ["/program"] ENTRYPOINT ["/program"]