Skip to content

Commit 1f8a8d6

Browse files
committed
Adding support for AArch64
1 parent 247fba3 commit 1f8a8d6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cli-docker/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM amd64/ubuntu:latest
1+
FROM ubuntu:latest
2+
3+
ARG TARGETARCH
24

35
# Set environment variables
4-
ENV DECO_CLI_VERSION=1.20.0
5-
ENV DECO_CLI_URL=https://releases.decodable.co/decodable-cli/linux/amd64/decodable-cli-linux-amd64-${DECO_CLI_VERSION}.tar.gz
6+
ENV DECO_CLI_VERSION=1.20.1
7+
ENV DECO_CLI_URL="https://releases.decodable.co/decodable-cli/linux/${TARGETARCH}/decodable-cli-linux-${TARGETARCH}-${DECO_CLI_VERSION}.tar.gz"
68

79
# Install necessary packages
810
RUN apt-get update && \
@@ -12,8 +14,8 @@ RUN apt-get update && \
1214
# Download and unpack the Decodable CLI
1315
RUN curl -L $DECO_CLI_URL -o /tmp/decodable-cli.tar.gz && \
1416
tar -xzf /tmp/decodable-cli.tar.gz -C /tmp && \
15-
mv /tmp/decodable-cli-linux-amd64-${DECO_CLI_VERSION}/bin/decodable /usr/local/bin && \
16-
rm -r /tmp/decodable-cli.tar.gz /tmp/decodable-cli-linux-amd64-${DECO_CLI_VERSION}
17+
mv /tmp/decodable-cli-linux-${TARGETARCH}-${DECO_CLI_VERSION}/bin/decodable /usr/local/bin && \
18+
rm -r /tmp/decodable-cli.tar.gz /tmp/decodable-cli-linux-${TARGETARCH}-${DECO_CLI_VERSION}
1719

1820
# Copy the entrypoint script into the image
1921
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

0 commit comments

Comments
 (0)