Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit a835bfa

Browse files
authored
fix: using macro for mounting pip cache (#45)
1 parent 463ce35 commit a835bfa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bentoctl_lambda/aws_lambda/template.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
EXPOSE 3000
55
ENV BENTOML_CONFIG={{bento__path}}/bentoml_config.yaml
66

7-
RUN --mount=type=cache,from=cached,mode=0777,target=/root/.cache/pip \
8-
pip install awslambdaric==2.0.0 mangum==0.12.3
7+
RUN {{ common.mount_cache("/root/.cache/pip") }} pip install awslambdaric==2.0.0 mangum==0.12.3
98

109
USER root
1110
ADD ./aws-lambda-rie /usr/local/bin/aws-lambda-rie

0 commit comments

Comments
 (0)