Skip to content

Commit 2352300

Browse files
authored
chore: update
1 parent 8280590 commit 2352300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ COPY .cargo ./.cargo/
2323
RUN mkdir src/ && echo 'fn main() {}' > ./src/main.rs
2424

2525
# Step 6: Build the project
26-
RUN cargo build --release;
26+
RUN cargo build --target=aarch64-unknown-linux-gnu --release;
2727

2828
# Step 7: Clean up and prepare for the final build
2929
RUN rm -f target/release/deps/gateway_proxy*
3030
COPY ./src ./src
3131

3232
# Step 8: Final build
33-
RUN cargo build --release; \
33+
RUN cargo build --target=aarch64-unknown-linux-gnu --release; \
3434
fi && \
3535
cp target/release/gateway-proxy /gateway-proxy && \
3636
strip /gateway-proxy

0 commit comments

Comments
 (0)