Add files for bandwhich

This commit is contained in:
2022-11-23 13:20:11 +01:00
parent 250819c08d
commit 471d42618d
3 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
# ---- 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
RUN cargo update
# Compile
RUN TARGET="release" make
# ---- Release ----
FROM base AS release
# Copy build-target
COPY --from=build /build/target/release/bandwhich .
CMD ["./bandwhich"]

1
tools/bandwhich/info.env Normal file
View File

@@ -0,0 +1 @@
GIT_REPOSITORY=https://github.com/imsnif/bandwhich