-
-
Notifications
You must be signed in to change notification settings - Fork 868
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Docker files for Raspberry Pi (#1335)
* Revert PR #1259 * Provide dedicated armhf & aarch64 Dockerfiles * Document updates
- Loading branch information
Showing
3 changed files
with
44 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*-Dockerfile-*- | ||
FROM debian:stretch | ||
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-aarch64.tar.xz && \ | ||
tar -xvf ldc2-1.16.0-linux-aarch64.tar.xz | ||
COPY . /usr/src/onedrive | ||
RUN cd /usr/src/onedrive/ && \ | ||
./configure DC=/ldc2-1.16.0-linux-aarch64/bin/ldmd2 && \ | ||
make clean && \ | ||
make && \ | ||
make install | ||
|
||
FROM debian:stretch-slim | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
RUN apt update && \ | ||
apt install -y gosu libcurl3 libsqlite3-0 && \ | ||
rm -rf /var/*/apt && \ | ||
mkdir -p /onedrive/conf /onedrive/data | ||
COPY contrib/docker/entrypoint.sh / | ||
COPY --from=0 /usr/local/bin/onedrive /usr/local/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters