File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 88
99[target .aarch64-unknown-linux-musl ]
1010rustflags = [" -Clinker=rust-lld" ]
11+
12+ [target .aarch64-unknown-linux-gnu ]
13+ linker = " aarch64-linux-gnu-gcc"
Original file line number Diff line number Diff line change 1+ Dockerfile
2+ * .md
3+ .github /**
Original file line number Diff line number Diff line change 99 DEBIAN_FRONTEND=noninteractive \
1010 apt-get update && \
1111 apt-get -y install ca-certificates tzdata && \
12- if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then apt install -y g++-aarch64-linux-gnu; fi;
12+ if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
13+ apt install -y g++-aarch64-linux-gnu; \
14+ fi;
1315
1416ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
1517
@@ -22,6 +24,8 @@ RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
2224 cargo build --release; \
2325 fi
2426
27+ RUN ls -l target/release
28+
2529# https://hub.docker.com/r/bitnami/minideb
2630FROM bitnami/minideb:latest AS final
2731
@@ -41,7 +45,7 @@ COPY --from=build \
4145
4246# copy built executable
4347COPY --from=build \
44- /app/target/release /microbin \
48+ /app/target/* /microbin \
4549 /usr/bin/microbin
4650
4751# Expose webport used for the webserver to the docker runtime
You can’t perform that action at this time.
0 commit comments