File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1
2+
3+ ## Buildstage ##
4+ FROM ghcr.io/linuxserver/baseimage-alpine:3.20 AS buildstage
5+
6+ RUN \
7+ echo "**** install packages ****" && \
8+ apk add --no-cache \
9+ curl && \
10+ echo "**** grab rclone ****" && \
11+ mkdir -p /root-layer && \
12+ if [ $(uname -m) = "x86_64" ]; then \
13+ echo "Downloading x86_64 tarball" && \
14+ curl -o \
15+ /root-layer/rclone.deb -L \
16+ "https://downloads.rclone.org/v1.47.0/rclone-v1.47.0-linux-amd64.deb"; \
17+ elif [ $(uname -m) = "aarch64" ]; then \
18+ echo "Downloading aarch64 tarball" && \
19+ curl -o \
20+ /root-layer/rclone.deb -L \
21+ "https://downloads.rclone.org/v1.47.0/rclone-v1.47.0-linux-arm64.deb"; \
22+ fi && \
23+
24+ # copy local files
25+ COPY root/ /root-layer/
26+
27+ ## Single layer deployed image ##
28+ FROM scratch
29+
30+ LABEL maintainer="username"
31+
32+ # Add files from buildstage
33+ COPY --from=buildstage /root-layer/ /
You can’t perform that action at this time.
0 commit comments