Skip to content

Commit 6e741f5

Browse files
committed
Attempt to see if this resolves build slowness
1 parent 4bd8866 commit 6e741f5

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88

99
[target.aarch64-unknown-linux-musl]
1010
rustflags = ["-Clinker=rust-lld"]
11+
12+
[target.aarch64-unknown-linux-gnu]
13+
linker = "aarch64-linux-gnu-gcc"

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Dockerfile
2+
*.md
3+
.github/**

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ RUN \
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

1416
ENV 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
2630
FROM bitnami/minideb:latest AS final
2731

@@ -41,7 +45,7 @@ COPY --from=build \
4145

4246
# copy built executable
4347
COPY --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

0 commit comments

Comments
 (0)