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" ]