fix dockerfile

This commit is contained in:
Jun Kurihara 2025-01-31 12:40:45 +09:00
commit 201733e1ce
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 2 additions and 0 deletions

View file

@ -25,6 +25,7 @@ COPY . /tmp/
ENV RUSTFLAGS "-C link-arg=-s"
RUN echo "Building rpxy from source" && \
cargo update && \
cargo build --release --target $(cat /arch)-unknown-linux-musl ${CARGO_FEATURES} && \
musl-strip --strip-all /tmp/target/$(cat /arch)-unknown-linux-musl/release/rpxy && \
cp /tmp/target/$(cat /arch)-unknown-linux-musl/release/rpxy /tmp/target/release/rpxy