ARM build fix
This commit is contained in:
parent
676571e4a4
commit
e8503b9cc5
@ -1,8 +1,12 @@
|
|||||||
FROM arm32v7/nginx:stable-alpine AS builder
|
FROM alpine AS builder1
|
||||||
|
|
||||||
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v4.0.0%2Bbalena2/qemu-4.0.0.balena2-arm.tar.gz
|
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v4.0.0%2Bbalena2/qemu-4.0.0.balena2-arm.tar.gz
|
||||||
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
|
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
|
||||||
|
|
||||||
|
FROM arm32v7/nginx:stable-alpine AS builder2
|
||||||
|
|
||||||
|
COPY --from=builder1 qemu-arm-static /usr/bin
|
||||||
|
|
||||||
COPY compile.sh /tmp/compile.sh
|
COPY compile.sh /tmp/compile.sh
|
||||||
RUN chmod +x /tmp/compile.sh && \
|
RUN chmod +x /tmp/compile.sh && \
|
||||||
/tmp/compile.sh && \
|
/tmp/compile.sh && \
|
||||||
@ -10,8 +14,8 @@ RUN chmod +x /tmp/compile.sh && \
|
|||||||
|
|
||||||
FROM arm32v7/nginx:stable-alpine
|
FROM arm32v7/nginx:stable-alpine
|
||||||
|
|
||||||
COPY --from=builder qemu-arm-static /usr/bin
|
COPY --from=builder1 qemu-arm-static /usr/bin
|
||||||
COPY --from=builder /*.so /usr/local/nginx/modules/
|
COPY --from=builder2 /*.so /usr/local/nginx/modules/
|
||||||
COPY entrypoint.sh /opt/entrypoint.sh
|
COPY entrypoint.sh /opt/entrypoint.sh
|
||||||
COPY confs/ /opt/confs
|
COPY confs/ /opt/confs
|
||||||
COPY scripts/ /opt/scripts
|
COPY scripts/ /opt/scripts
|
||||||
|
|||||||
@ -1,8 +1,12 @@
|
|||||||
FROM arm64v8/nginx:stable-alpine AS builder
|
FROM alpine AS builder1
|
||||||
|
|
||||||
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v4.0.0%2Bbalena2/qemu-4.0.0.balena2-aarch64.tar.gz
|
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v4.0.0%2Bbalena2/qemu-4.0.0.balena2-aarch64.tar.gz
|
||||||
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
|
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
|
||||||
|
|
||||||
|
FROM arm64v8/nginx:stable-alpine AS builder2
|
||||||
|
|
||||||
|
COPY --from=builder1 qemu-aarch64-static /usr/bin
|
||||||
|
|
||||||
COPY compile.sh /tmp/compile.sh
|
COPY compile.sh /tmp/compile.sh
|
||||||
RUN chmod +x /tmp/compile.sh && \
|
RUN chmod +x /tmp/compile.sh && \
|
||||||
/tmp/compile.sh && \
|
/tmp/compile.sh && \
|
||||||
@ -10,8 +14,8 @@ RUN chmod +x /tmp/compile.sh && \
|
|||||||
|
|
||||||
FROM arm64v8/nginx:stable-alpine
|
FROM arm64v8/nginx:stable-alpine
|
||||||
|
|
||||||
COPY --from=builder qemu-aarch64-static /usr/bin
|
COPY --from=builder1 qemu-aarch64-static /usr/bin
|
||||||
COPY --from=builder /*.so /usr/local/nginx/modules/
|
COPY --from=builder2 /*.so /usr/local/nginx/modules/
|
||||||
COPY entrypoint.sh /opt/entrypoint.sh
|
COPY entrypoint.sh /opt/entrypoint.sh
|
||||||
COPY confs/ /opt/confs
|
COPY confs/ /opt/confs
|
||||||
COPY scripts/ /opt/scripts
|
COPY scripts/ /opt/scripts
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user