Skip to content

Commit 381aab9

Browse files
committed
Adding ECR Scan reporter lib to CLI and macro
1 parent 2a7cc3e commit 381aab9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cli.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN python -m pip install pip -U ; pip install poetry ; poetry build
1212
FROM $BASE_IMAGE
1313
COPY --from=builder /opt/dist/ecs_composex-*.whl /opt/
1414
WORKDIR /opt
15-
RUN pip install pip -U --no-cache-dir && pip install wheel --no-cache-dir && pip install *.whl --no-cache-dir
15+
RUN pip install pip -U --no-cache-dir && pip install wheel --no-cache-dir && pip install *.whl --no-cache-dir;\
16+
pip --no-cache-dir install ecs-composex[ecrscan]
1617
WORKDIR /tmp
1718
ENTRYPOINT ["ecs-compose-x"]

macro.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ RUN python -m pip install pip -U ; pip install poetry ; poetry build
1212
FROM ${LAMBDA_IMAGE:-$BASE_IMAGE}
1313
WORKDIR ${LAMBDA_TASK_ROOT:-/opt/}
1414
COPY --from=builder /opt/dist/ecs_composex-*.whl ${LAMBDA_TASK_ROOT:-/opt/}/
15-
RUN pip install pip -U --no-cache-dir && pip install wheel --no-cache-dir && pip install *.whl --no-cache-dir
15+
RUN pip install pip -U --no-cache-dir && pip install wheel --no-cache-dir && pip install *.whl --no-cache-dir ;\
16+
pip install --no-cache-dir ecs-composex[ecrscan]
1617
CMD ["ecs_composex.macro.lambda_handler"]

0 commit comments

Comments
 (0)