A file server that supports static serving, uploading, searching, accessing control, webdav...
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
FROM alpine as builder
|
|
|
|
ARG REPO VER TARGETPLATFORM
|
|
|
|
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
|
|
|
TARGET="x86_64-unknown-linux-musl"; \
|
|
|
|
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
|
|
|
|
TARGET="aarch64-unknown-linux-musl"; \
|
|
|
|
elif [ "$TARGETPLATFORM" = "linux/386" ]; then \
|
|
|
|
TARGET="i686-unknown-linux-musl"; \
|
|
|
|
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
|
|
|
|
TARGET="armv7-unknown-linux-musleabihf"; \
|
|
|
|
fi && \
|
|
|
|
wget https://github.com/${REPO}/releases/download/${VER}/dufs-${VER}-${TARGET}.tar.gz && \
|
|
|
|
tar -xf dufs-${VER}-${TARGET}.tar.gz && \
|
|
|
|
mv dufs /bin/
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /bin/dufs /bin/dufs
|
|
|
|
ENTRYPOINT ["/bin/dufs"]
|