This commit is contained in:
parent
fa757372cb
commit
a96c557b45
10
Dockerfile
10
Dockerfile
@ -4,15 +4,17 @@ WORKDIR /build
|
|||||||
|
|
||||||
COPY wg-event-gen/Cargo.* /build/
|
COPY wg-event-gen/Cargo.* /build/
|
||||||
|
|
||||||
RUN mkdir -p src && echo "fn main() {}" > src/main.rs && cargo build --release
|
RUN rustup target add x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
RUN mkdir -p src && echo "fn main() {}" > src/main.rs && cargo build --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
COPY wg-event-gen/ /build
|
COPY wg-event-gen/ /build
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
FROM frolvlad/alpine-glibc AS test
|
FROM frolvlad/alpine-glibc AS test
|
||||||
|
|
||||||
COPY --from=eventbuild /build/target/release/wg-event-gen /usr/bin/
|
COPY --from=eventbuild /build/target/x86_64-unknown-linux-musl/release/wg-event-gen /usr/bin/
|
||||||
|
|
||||||
RUN echo "2df798799c5049324174c4df0189695d -" > test.md5 && wg-event-gen | md5sum -c test.md5
|
RUN echo "2df798799c5049324174c4df0189695d -" > test.md5 && wg-event-gen | md5sum -c test.md5
|
||||||
|
|
||||||
@ -34,7 +36,7 @@ ENV WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1
|
|||||||
|
|
||||||
COPY --from=build /go/bin/wireguard /usr/bin/wireguard-go
|
COPY --from=build /go/bin/wireguard /usr/bin/wireguard-go
|
||||||
|
|
||||||
COPY --from=eventbuild /build/target/release/wg-event-gen /usr/bin/
|
COPY --from=eventbuild /build/target/x86_64-unknown-linux-musl/release/wg-event-gen /usr/bin/
|
||||||
|
|
||||||
COPY init.sh /init.sh
|
COPY init.sh /init.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user