make the dockerfiles not to fail during build
This commit is contained in:
parent
d16615a07c
commit
022dffa1c4
|
@ -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
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue