mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-10 01:36:39 +02:00
Dockerfile config for arm64 (#1259)
* Add ARCH flag to denote difference between ARMHF and ARM64 platforms
This commit is contained in:
parent
66a172d13a
commit
a971dd0844
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue