File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 unzip docbox-upload-completion-lambda.zip -d /tmp/processing-lambda
6565 unzip poppler-lambda-layer.zip -d /tmp/processing-lambda
6666 zip -r docbox-upload-completion-lambda-amd64.zip /tmp/processing-lambda
67- mv /tmp/docbox-upload-completion-lambda-amd64.zip
6867 shell : bash
6968
7069 # Upload the built artifacts
@@ -136,7 +135,6 @@ jobs:
136135 unzip docbox-upload-completion-lambda.zip -d /tmp/processing-lambda
137136 unzip poppler-lambda-layer.zip -d /tmp/processing-lambda
138137 zip -r docbox-upload-completion-lambda-arm64.zip /tmp/processing-lambda
139- mv /tmp/docbox-upload-completion-lambda-arm64.zip
140138 shell : bash
141139
142140 # Upload the built artifacts
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44# Build the container
5- docker buildx build --platform linux/amd64 -f ./layers/poppler.Dockerfile -t poppler-lambda-layer-amd64 ./layers
5+ docker buildx build --build-arg BASE_IMAGE=public.ecr.aws/lambda/provided:al2023 -- platform linux/amd64 -f ./layers/poppler.Dockerfile -t poppler-lambda-layer-amd64 ./layers
66
77# Run a container and copy out the zip then delete it
88CONTAINER_ID=$( docker create --platform linux/amd64 poppler-lambda-layer-amd64)
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44# Build the container
5- docker buildx build --platform linux/arm64 -f ./layers/poppler.Dockerfile -t poppler-lambda-layer-arm64 ./layers
5+ docker buildx build --build-arg BASE_IMAGE=public.ecr.aws/lambda/provided:al2023-arm64 -- platform linux/arm64 -f ./layers/poppler.Dockerfile -t poppler-lambda-layer-arm64 ./layers
66
77# Run a container and copy out the zip then delete it
88CONTAINER_ID=$( docker create --platform linux/arm64 poppler-lambda-layer-arm64)
Original file line number Diff line number Diff line change 11# Docker for building the layer for poppler support in AWS lambda
2- FROM public.ecr.aws/lambda/provided:al2023 AS builder
2+ ARG BASE_IMAGE=public.ecr.aws/lambda/provided:al2023
3+ FROM ${BASE_IMAGE} AS builder
34
45# Install required dependencies
56RUN dnf -y update && \
You can’t perform that action at this time.
0 commit comments