This repository was archived by the owner on Jul 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
infrastructure/aws/lambda Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ COPY README.md README.md
1515COPY src/ src/
1616
1717RUN uv export --frozen --extra lambda > requirements.txt && \
18- uv pip install --compile-bytecode --target ${LAMBDA_TASK_ROOT} -r requirements.txt
18+ uv pip install --compile-bytecode --target /asset -r requirements.txt
1919
2020# Reduce package size and remove useless files
21- WORKDIR ${LAMBDA_TASK_ROOT}
21+ WORKDIR /asset
2222RUN find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\/ //' | sed 's/.cpython-[0-9]*//' ); cp $f $n; done;
2323RUN find . -type d -a -name '__pycache__' -print0 | xargs -0 rm -rf
2424RUN find . -type f -a -name '*.py' -print0 | xargs -0 rm -f
@@ -27,4 +27,4 @@ RUN find . -type d -a -name 'tests' -print0 | xargs -0 rm -rf
2727# Strip debug symbols from compiled C/C++ code
2828RUN find . -type f -name '*.so*' -exec strip --strip-unneeded {} \;
2929
30- COPY infrastructure/aws/lambda/handler.py ${LAMBDA_TASK_ROOT} /handler.py
30+ COPY infrastructure/aws/lambda/handler.py /asset /handler.py
You can’t perform that action at this time.
0 commit comments