Skip to content

Commit

Permalink
Attempt to see if this resolves build slowness
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Dec 5, 2024
1 parent 4bd8866 commit 6e741f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@

[target.aarch64-unknown-linux-musl]
rustflags = ["-Clinker=rust-lld"]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Dockerfile
*.md
.github/**
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ RUN \
DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get -y install ca-certificates tzdata && \
if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then apt install -y g++-aarch64-linux-gnu; fi;
if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
apt install -y g++-aarch64-linux-gnu; \
fi;

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

Expand All @@ -22,6 +24,8 @@ RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
cargo build --release; \
fi

RUN ls -l target/release

# https://hub.docker.com/r/bitnami/minideb
FROM bitnami/minideb:latest AS final

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

# copy built executable
COPY --from=build \
/app/target/release/microbin \
/app/target/*/microbin \
/usr/bin/microbin

# Expose webport used for the webserver to the docker runtime
Expand Down

0 comments on commit 6e741f5

Please sign in to comment.