Skip to content

Commit c1d6a7e

Browse files
authored
Add files via upload
1 parent 4f5795d commit c1d6a7e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Dockerfile.complex

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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/ /

0 commit comments

Comments
 (0)