-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
能否出一个docker版本 #1193
Comments
Dockerfile: FROM alpine:latest
WORKDIR /lux
RUN apk add --no-cache \
curl ca-certificates openssl \
perl curl ffmpeg \
tar gzip jq; \
apkArch="$(apk --print-arch)"; Arch=""; \
case "$apkArch" in \
armel) export Arch='ARM_v6' ;; \
arm64) export Arch='ARM64' ;; \
x86) export Arch='32-bit' ;; \
x86_64) export Arch='64-bit';; \
esac; \
v=`curl --request GET --silent \
--url https://api.github.com/repos/iawia002/lux/releases \
--header 'Accept: application/json' \
--header 'X-GitHub-Api-Version: 2022-11-28' \
| jq '.[0].tag_name' | tr -d 'v' | tr -d '"'`; \
curl --request GET -L \
--url "https://github.com/iawia002/lux/releases/download/v$v/lux_$(echo $v)_Linux_$Arch.tar.gz" \
--header 'application/octet-stream' \
-o lux.tar.gz \
&& tar xvf lux.tar.gz \
&& rm -rf lux.tar.gz \
&& chmod +x ./lux
ENTRYPOINT ["/lux/lux"]
CMD ["-h"] |
您好,我已打包镜像,但是不知道端口、路径和环境变量,输入“docker run -d -p 2580:80 lux”命令后有容器生成,但是立马自动关闭了,麻烦您指导一下,谢谢!! |
lux 并不能以持久性的服务器形式运行,也没有暴露端口,用法与lux本身没有什么不同 如果想要以 http request 方式调用 lux,那就不是一个简单的 docker 镜像能解决的了 如果有相关的想法的话可以参考 #364 $ docker run --rm lux -i "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Site: YouTube youtube.com
Title: Rick Astley - Never Gonna Give You Up (Video)
Type: video
Streams: # All available quality
[248] -------------------
Quality: 1080p video/webm; codecs="vp9"
Size: 49.29 MiB (51687554 Bytes)
# download with: lux -f 248 ...
[137] -------------------
Quality: 1080p video/mp4; codecs="avc1.640028"
Size: 43.45 MiB (45564306 Bytes)
# download with: lux -f 137 ...
[398] -------------------
Quality: 720p video/mp4; codecs="av01.0.05M.08"
Size: 37.12 MiB (38926432 Bytes)
# download with: lux -f 398 ...
[136] -------------------
Quality: 720p video/mp4; codecs="avc1.4d401f"
Size: 31.34 MiB (32867324 Bytes)
# download with: lux -f 136 ...
[247] -------------------
Quality: 720p video/webm; codecs="vp9"
Size: 31.03 MiB (32536181 Bytes)
# download with: lux -f 247 ... |
好的,谢谢 |
No description provided.
The text was updated successfully, but these errors were encountered: