Multi-arch builds
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,8 +1,15 @@
|
||||
FROM ubuntu:19.10
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} ubuntu:19.10
|
||||
|
||||
RUN apt-get update && apt-get install -y curl
|
||||
RUN curl -o megacmd-xUbuntu_19.10_amd64.deb https://mega.nz/linux/MEGAsync/xUbuntu_19.10/amd64/megacmd-xUbuntu_19.10_amd64.deb
|
||||
RUN apt install -y ./megacmd-xUbuntu_19.10_amd64.deb
|
||||
ARG BUILDPLATFORM
|
||||
ARG TARGETPLATFORM
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
RUN apt-get update && apt-get install -y curl ca-certificates
|
||||
RUN export URL="https://mega.nz/linux/MEGAsync/Raspbian_10.0/armhf/megacmd-Raspbian_10.0_armhf.deb" && \
|
||||
if [ "${TARGETARCH}" = "amd64" ] ; then export URL="https://mega.nz/linux/MEGAsync/xUbuntu_19.10/amd64/megacmd-xUbuntu_19.10_amd64.deb" ; fi && \
|
||||
curl -k -o megacmd.deb $URL
|
||||
RUN apt install -y ./megacmd.deb
|
||||
|
||||
ADD entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user