Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 200ec57

Browse files
committed
fix: switch back to asset
1 parent 6a320b1 commit 200ec57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infrastructure/aws/lambda/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ COPY README.md README.md
1515
COPY src/ src/
1616

1717
RUN 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
2222
RUN find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\///' | sed 's/.cpython-[0-9]*//'); cp $f $n; done;
2323
RUN find . -type d -a -name '__pycache__' -print0 | xargs -0 rm -rf
2424
RUN 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
2828
RUN 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

0 commit comments

Comments
 (0)