Skip to content

Commit

Permalink
fix: force the docker build to be arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Jun 19, 2024
1 parent 83a2e3c commit 8e37acf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
FROM --platform=$BUILDPLATFORM rust:1.66 as builder
WORKDIR /app

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
g++-aarch64-linux-gnu libc6-dev-arm64-cross \
&& rustup target add aarch64-unknown-linux-gnu

ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc

ADD . .
RUN cargo prisma generate
RUN cargo build --release -p api
Expand Down

0 comments on commit 8e37acf

Please sign in to comment.