diff --git a/docker/webhook_bridge/Dockerfile b/docker/webhook_bridge/Dockerfile index 74d9d18..1999cf3 100644 --- a/docker/webhook_bridge/Dockerfile +++ b/docker/webhook_bridge/Dockerfile @@ -7,12 +7,12 @@ RUN apk add --no-cache musl-dev pkgconfig libressl-dev RUN mkdir /source WORKDIR /source -COPY . . +COPY --link . . # TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static" RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked CARGO_TARGET_DIR=/target cargo build --profile release-lto --bin webhook_bridge FROM alpine:$ALPINE_VERSION AS runner -COPY --from=builder /target/release-lto/webhook_bridge /usr/bin/ +COPY --link --from=builder /target/release-lto/webhook_bridge /usr/bin/ ENTRYPOINT ["/usr/bin/webhook_bridge"]