From 5d7ab437844f05b393ae1a8a57e10b4e1f99b3cb Mon Sep 17 00:00:00 2001 From: Junv Zhao Date: Wed, 9 Jan 2019 19:26:51 +1100 Subject: [PATCH] add docker images --- Dockerfile | 21 +++++++++++++++++++++ arm32.Dockerfile | 21 +++++++++++++++++++++ arm64.Dockerfile | 21 +++++++++++++++++++++ readme.md | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 97 insertions(+) create mode 100644 Dockerfile create mode 100644 arm32.Dockerfile create mode 100644 arm64.Dockerfile create mode 100644 readme.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6f76553 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM alpine:edge + +LABEL AUTHOR=Junv + +RUN apk update && apk add wget bash gnupg --no-cache + +WORKDIR /app + +#AriaNg +RUN wget -N --no-check-certificate https://github.com/liuzhuoling2011/baidupcs-web/releases/download/3.6.1/BaiduPCS-Go-3.6.1-linux-amd64.zip \ + && unzip BaiduPCS-Go-3.6.1-linux-amd64.zip && rm BaiduPCS-Go-3.6.1-linux-amd64.zip \ + && cd BaiduPCS-Go-3.6.1-linux-amd64 \ + && mv BaiduPCS-Go .. && cd .. \ + && mv BaiduPCS-Go baidupcs \ + && chmod +x baidupcs + +EXPOSE 5299 + +CMD "/app/baidupcs" + + diff --git a/arm32.Dockerfile b/arm32.Dockerfile new file mode 100644 index 0000000..07a2279 --- /dev/null +++ b/arm32.Dockerfile @@ -0,0 +1,21 @@ +FROM arm32v6/alpine:edge + +LABEL AUTHOR=Junv + +RUN apk update && apk add wget bash gnupg --no-cache + +WORKDIR /app + +#AriaNg +RUN wget -N --no-check-certificate https://github.com/liuzhuoling2011/baidupcs-web/releases/download/3.6.1/BaiduPCS-Go-3.6.1-linux-arm.zip \ + && unzip BaiduPCS-Go-3.6.1-linux-arm.zip && rm BaiduPCS-Go-3.6.1-linux-arm.zip \ + && cd BaiduPCS-Go-3.6.1-linux-arm \ + && mv BaiduPCS-Go .. && cd .. \ + && mv BaiduPCS-Go baidupcs \ + && chmod +x baidupcs + +EXPOSE 5299 + +CMD "/app/baidupcs" + + diff --git a/arm64.Dockerfile b/arm64.Dockerfile new file mode 100644 index 0000000..7115f32 --- /dev/null +++ b/arm64.Dockerfile @@ -0,0 +1,21 @@ +FROM arm64v8/alpine:edge + +LABEL AUTHOR=Junv + +RUN apk update && apk add wget bash gnupg --no-cache + +WORKDIR /app + +#AriaNg +RUN wget -N --no-check-certificate https://github.com/liuzhuoling2011/baidupcs-web/releases/download/3.6.1/BaiduPCS-Go-3.6.1-linux-arm64.zip \ + && unzip BaiduPCS-Go-3.6.1-linux-arm64.zip && rm BaiduPCS-Go-3.6.1-linux-arm64.zip \ + && cd BaiduPCS-Go-3.6.1-linux-arm64 \ + && mv BaiduPCS-Go .. && cd .. \ + && mv BaiduPCS-Go baidupcs \ + && chmod +x baidupcs + +EXPOSE 5299 + +CMD "/app/baidupcs" + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..2e75905 --- /dev/null +++ b/readme.md @@ -0,0 +1,34 @@ +The Docker image for [BaiduPCS-Web](https://github.com/liuzhuoling2011/baidupcs-web) + +## Why + +The easiest and simplest way to run this application. + +## Run + +```bash +docker run -d -p 5299:5299 wahyd4/baidupcs:latest +``` + +Then open to enjoy! + +## Supported cpu platforms + +* amd64 +* arm32 +* arm64 + +## More Information + +Please go to original productions page: +* [BaiduPCS-Go](https://github.com/iikira/BaiduPCS-Go) +* [baidupcs-web](https://github.com/liuzhuoling2011/baidupcs-web) + +### How to login + +Refer: https://github.com/iikira/BaiduPCS-Go/wiki/%E5%85%B3%E4%BA%8E-%E8%8E%B7%E5%8F%96%E7%99%BE%E5%BA%A6-BDUSS + + + + +