Files
agent-claw/cdk/node_modules/@aws-cdk/asset-node-proxy-agent-v6/layer/Dockerfile
2026-05-06 18:55:16 -05:00

34 lines
501 B
Docker

# base lambda image
FROM public.ecr.aws/lambda/nodejs:latest
USER root
RUN mkdir -p /opt
WORKDIR /tmp
#
# tools
#
RUN dnf update -y \
&& dnf install -y zip
#
# install nodejs dependencies: proxy-agent
#
RUN mkdir -p /opt/nodejs
COPY package*.json /opt/nodejs/
RUN cd /opt/nodejs && npm ci && rm package*.json
#
# create the bundle
#
RUN cd /opt \
&& zip --symlinks -r ../layer.zip * \
&& echo "/layer.zip is ready" \
&& ls -alh /layer.zip;
WORKDIR /
ENTRYPOINT [ "/bin/bash" ]