Skip to content

Commit

Permalink
messing around and finding out pt6 Far from home
Browse files Browse the repository at this point in the history
  • Loading branch information
Dj-Codeman committed Feb 16, 2024
1 parent 3f69a48 commit 035dc65
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/Dockerfile.build.static
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@ FROM alpine:3.18 as build
COPY ./ /source
WORKDIR /source

ENV OPENSSL_STATIC=yes \
AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu \
AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu \
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \
CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++ \
PKG_CONFIG_PATH="/usr/lib/aarch64-linux-gnu/pkgconfig/:${PKG_CONFIG_PATH}"


RUN apk update && \
apk add rustup git gcc lld openssl1.1-compat-dev openssl1.1-compat-libs-static && \
rustup-init -y && \
source "$HOME/.cargo/env" && \
RUSTFLAGS="-C link-args=-fuse-ld=lld" cargo build --release && \
strip target/debug/dog
RUSTFLAGS="-C link-args=-fuse-ld=lld" cargo update && cargo build --release && \
strip target/debug/doge

FROM scratch AS export-stage
ARG TARGETARCH
COPY --from=build /source/target/debug/dog ./dog_linux_$TARGETARCH
COPY --from=build /source/target/release/doge ./doge_linux_$TARGETARCH

0 comments on commit 035dc65

Please sign in to comment.