Skip to content

Commit

Permalink
use TARGETPLATFORM to build arm64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Aug 3, 2024
1 parent 1b0a06d commit 42f7c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oceanbase-ce/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM openanolis/anolisos as builder
FROM --platform=$TARGETPLATFORM openanolis/anolisos as builder

ARG VERSION

Expand Down Expand Up @@ -27,7 +27,7 @@ RUN cd /root/demo && tar -cvzf store.tar.gz store
RUN rm -rf /root/demo/store && rm -rf /root/demo/log/* && rm -rf /root/demo/log_obshell/* && rm -rf /root/demo/etc/*.py && rm -rf /root/demo/etc/obshell && rm -rf /root/demo/etc/*.sql && rm -rf /root/demo/etc/*.log && rm -rf /root/demo/run/*
RUN cd /root/.obd && rm -rf log/obd && tar -cvzf repository.tar.gz repository && rm -rf /root/.obd/repository && rm -rf /root/.obd/mirror/local/*

FROM --platform=$BUILDPLATFORM openanolis/anolisos
FROM --platform=$TARGETPLATFORM openanolis/anolisos

WORKDIR /root
RUN yum install -y yum-utils && \
Expand Down

0 comments on commit 42f7c6e

Please sign in to comment.