also build for arm64
This commit is contained in:
1 parent
e0c2e7846a
commit
848f60eae1
1 file changed
+24
@@ -24,6 +24,7 @@ COPY . ${WORKDIR}
|
|||||||
|
|
||||||
ENV GOPATH=/go
|
ENV GOPATH=/go
|
||||||
|
|
||||||
|
|
||||||
FROM builder as amd64
|
FROM builder as amd64
|
||||||
|
|
||||||
ARG PLUGIN_MAKE_TARGET
|
ARG PLUGIN_MAKE_TARGET
|
||||||
@@ -39,6 +40,7 @@ RUN PLUGIN_MAKE_TARGET=${PLUGIN_MAKE_TARGET} \
|
|||||||
make version copyfiles \
|
make version copyfiles \
|
||||||
&& make deb-dokku rpm-dokku
|
&& make deb-dokku rpm-dokku
|
||||||
|
|
||||||
|
|
||||||
FROM builder as armhf
|
FROM builder as armhf
|
||||||
|
|
||||||
COPY --from=amd64 /tmp /tmp
|
COPY --from=amd64 /tmp /tmp
|
||||||
@@ -59,4 +61,26 @@ RUN PLUGIN_MAKE_TARGET=${PLUGIN_MAKE_TARGET} \
|
|||||||
GOARCH=arm make version copyfiles \
|
GOARCH=arm make version copyfiles \
|
||||||
&& DOKKU_ARCHITECTURE=armhf GOARCH=arm make deb-dokku
|
&& DOKKU_ARCHITECTURE=armhf GOARCH=arm make deb-dokku
|
||||||
|
|
||||||
|
|
||||||
|
FROM builder as arm64
|
||||||
|
|
||||||
|
COPY --from=amd64 /tmp /tmp
|
||||||
|
COPY --from=amd64 /usr/local/share/man/man1/dokku.1 /usr/local/share/man/man1/dokku.1-generated
|
||||||
|
|
||||||
|
RUN rm -rf /tmp/build-dokku
|
||||||
|
|
||||||
|
ARG PLUGIN_MAKE_TARGET
|
||||||
|
ARG DOKKU_VERSION=master
|
||||||
|
ARG DOKKU_GIT_REV
|
||||||
|
ARG IS_RELEASE=false
|
||||||
|
|
||||||
|
RUN PLUGIN_MAKE_TARGET=${PLUGIN_MAKE_TARGET} \
|
||||||
|
DOKKU_VERSION=${DOKKU_VERSION} \
|
||||||
|
DOKKU_GIT_REV=${DOKKU_GIT_REV} \
|
||||||
|
IS_RELEASE=${IS_RELEASE} \
|
||||||
|
SKIP_GO_CLEAN=true \
|
||||||
|
GOARCH=arm64 make version copyfiles \
|
||||||
|
&& DOKKU_ARCHITECTURE=arm64 GOARCH=arm64 make deb-dokku
|
||||||
|
|
||||||
|
|
||||||
RUN ls -lha /tmp/
|
RUN ls -lha /tmp/
|
||||||
Reference in new issue
Block a user