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