File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM amd64/ubuntu:latest
1
+ FROM ubuntu:latest
2
+
3
+ ARG TARGETARCH
2
4
3
5
# 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"
6
8
7
9
# Install necessary packages
8
10
RUN apt-get update && \
@@ -12,8 +14,8 @@ RUN apt-get update && \
12
14
# Download and unpack the Decodable CLI
13
15
RUN curl -L $DECO_CLI_URL -o /tmp/decodable-cli.tar.gz && \
14
16
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}
17
19
18
20
# Copy the entrypoint script into the image
19
21
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
You can’t perform that action at this time.
0 commit comments