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

Commit

Permalink
fix: using macro for mounting pip cache (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmachan authored Jul 20, 2022
1 parent 463ce35 commit a835bfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bentoctl_lambda/aws_lambda/template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
EXPOSE 3000
ENV BENTOML_CONFIG={{bento__path}}/bentoml_config.yaml

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

USER root
ADD ./aws-lambda-rie /usr/local/bin/aws-lambda-rie
Expand Down

0 comments on commit a835bfa

Please sign in to comment.