Skip to content

Commit a8eaa8e

Browse files
authored
fix: fix how the unzipped http-cli content is handled during build (#5)
1 parent 0b3cdfd commit a8eaa8e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ RUN --mount=type=secret,id=github_token \
1919
-o http-cli.zip && \
2020
unzip http-cli.zip && \
2121
mkdir -p /http-cli-bin && \
22-
mv http-cli-develop/http-cli /http-cli-bin/ && \
22+
mv http-cli-${HTTP_CLI_VERSION#v}/http-cli /http-cli-bin/ && \
2323
chmod +x /http-cli-bin/http-cli && \
24-
rm -rf http-cli.zip http-cli-develop
24+
rm -rf http-cli.zip http-cli-${HTTP_CLI_VERSION#v}
2525

2626
# Stage 2: Runtime stage
2727
FROM public.ecr.aws/lambda/provided:al2023

micro.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ RUN --mount=type=secret,id=github_token \
1212
-o http-cli.zip && \
1313
unzip http-cli.zip && \
1414
mkdir -p /http-cli-bin && \
15-
mv http-cli-develop/http-cli /http-cli-bin/ && \
15+
mv http-cli-${HTTP_CLI_VERSION#v}/http-cli /http-cli-bin/ && \
1616
chmod +x /http-cli-bin/http-cli && \
17-
rm -rf http-cli.zip http-cli-develop
17+
rm -rf http-cli.zip http-cli-${HTTP_CLI_VERSION#v}
1818

1919
RUN pip3 install --no-cache-dir --target /tmp/awscurl awscurl && \
2020
find /tmp/awscurl -type d -name '__pycache__' -exec rm -rf {} + && \

tiny.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ RUN --mount=type=secret,id=github_token \
1212
-o http-cli.zip && \
1313
unzip http-cli.zip && \
1414
mkdir -p /http-cli-bin && \
15-
mv http-cli-develop/http-cli /http-cli-bin/ && \
15+
mv http-cli-${HTTP_CLI_VERSION#v}/http-cli /http-cli-bin/ && \
1616
chmod +x /http-cli-bin/http-cli && \
17-
rm -rf http-cli.zip http-cli-develop
17+
rm -rf http-cli.zip http-cli-${HTTP_CLI_VERSION#v}
1818

1919
# Stage 2: Runtime stage
2020
FROM public.ecr.aws/lambda/provided:al2023

0 commit comments

Comments
 (0)