Dockerfile config for arm64 (#1259)

* Add ARCH flag to denote difference between ARMHF and ARM64 platforms
This commit is contained in:
Krassimir Valev 2021-02-08 21:45:37 +01:00 committed by GitHub
parent 66a172d13a
commit a971dd0844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,13 @@
# -*-Dockerfile-*-
FROM debian:stretch
ARG ARCH armhf # or aarch64
RUN apt update && \
apt install -y build-essential curl libcurl4-openssl-dev libsqlite3-dev pkg-config wget git
RUN wget https://github.com/ldc-developers/ldc/releases/download/v1.16.0/ldc2-1.16.0-linux-armhf.tar.xz && \
tar -xvf ldc2-1.16.0-linux-armhf.tar.xz
RUN wget https://github.com/ldc-developers/ldc/releases/download/v1.16.0/ldc2-1.16.0-linux-${ARCH}.tar.xz && \
tar -xvf ldc2-1.16.0-linux-${ARCH}.tar.xz
COPY . /usr/src/onedrive
RUN cd /usr/src/onedrive/ && \
./configure DC=/ldc2-1.16.0-linux-armhf/bin/ldmd2 && \
./configure DC=/ldc2-1.16.0-linux-${ARCH}/bin/ldmd2 && \
make clean && \
make && \
make install