Skip to content

Commit

Permalink
fix: remove buildplatform
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Jun 19, 2024
1 parent 872dfeb commit 9de86f2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
FROM --platform=$BUILDPLATFORM rust:1.66 as builder
FROM 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 9de86f2

Please sign in to comment.