From 022dffa1c45ecc86ec930ec706c0af0cf17b3a51 Mon Sep 17 00:00:00 2001 From: blek Date: Sun, 22 Oct 2023 23:46:17 +1000 Subject: [PATCH] make the dockerfiles not to fail during build --- filed/Dockerfile.prod | 3 ++- janitor/Dockerfile.prod | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/filed/Dockerfile.prod b/filed/Dockerfile.prod index 8239767..88c6bdb 100644 --- a/filed/Dockerfile.prod +++ b/filed/Dockerfile.prod @@ -4,7 +4,8 @@ FROM rust:alpine as builder WORKDIR /opt/build COPY . . -RUN apk add --no-cache musl-dev upx +RUN apk add --no-cache musl-dev upx nodejs yarn && \ + yarn global add uglify-js RUN cargo b -r RUN strip target/release/filed && upx --best target/release/filed diff --git a/janitor/Dockerfile.prod b/janitor/Dockerfile.prod index 8239767..fbd4949 100644 --- a/janitor/Dockerfile.prod +++ b/janitor/Dockerfile.prod @@ -7,10 +7,10 @@ COPY . . RUN apk add --no-cache musl-dev upx RUN cargo b -r -RUN strip target/release/filed && upx --best target/release/filed +RUN strip target/release/janitor && upx --best target/release/janitor # --- deploy --- FROM busybox:musl -COPY --from=builder /opt/build/target/release/filed /bin/filed -CMD [ "/bin/filed" ] +COPY --from=builder /opt/build/target/release/janitor /bin/janitor +CMD [ "/bin/janitor" ]