Merge branch 'tool_bandwhich'
commit
62ee2fe065
@ -0,0 +1,22 @@
|
|||||||
|
# ---- Base ----
|
||||||
|
FROM alpine:3 AS base
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
||||||
|
# ---- Build ----
|
||||||
|
FROM rust:alpine AS build
|
||||||
|
WORKDIR /build
|
||||||
|
# Install packages
|
||||||
|
RUN apk add --no-cache make libc-dev build-base
|
||||||
|
# Copy sources
|
||||||
|
ADD .build/repository/ .
|
||||||
|
# Update dependencies and Compile
|
||||||
|
RUN cargo update && TARGET="release" make
|
||||||
|
|
||||||
|
|
||||||
|
# ---- Release ----
|
||||||
|
FROM base AS release
|
||||||
|
# Copy build-target
|
||||||
|
COPY --from=build /build/target/release/bandwhich .
|
||||||
|
|
||||||
|
ENTRYPOINT ["./bandwhich"]
|
@ -0,0 +1 @@
|
|||||||
|
GIT_REPOSITORY=https://github.com/imsnif/bandwhich
|
Loading…
Reference in New Issue