We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d2cc3 commit b288022Copy full SHA for b288022
Dockerfile
@@ -1,10 +1,9 @@
1
-FROM busybox AS downloader
+FROM debian:12-slim AS downloader
2
ARG TAR_URL_AMD64
3
ARG TAR_URL_ARM64
4
5
-WORKDIR /app
6
-
7
-RUN [ "${TARGETPLATFORM}" = "linux/arm64" ] && export TAR_URL=${TAR_URL_ARM64} || export TAR_URL=${TAR_URL_AMD64} \
+RUN apt-get update && apt-get install -y curl tar
+RUN TAR_URL=$(if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then echo ${TAR_URL_ARM64}; else echo ${TAR_URL_AMD64}; fi) \
8
&& curl -fsSL $TAR_URL -o /tmp/package.tar.gz \
9
&& tar -xzf /tmp/package.tar.gz -C /app \
10
&& chmod +x /app/liwan
0 commit comments