Skip to content

Commit

Permalink
Dockerfile config for arm64 (#1259)
Browse files Browse the repository at this point in the history
* Add ARCH flag to denote difference between ARMHF and ARM64 platforms
  • Loading branch information
kvalev committed Feb 8, 2021
1 parent 66a172d commit a971dd0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contrib/docker/Dockerfile-rpi
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a971dd0

Please sign in to comment.