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

Commit 6a320b1

Browse files
committed
fix: lambda dockerfile
1 parent 312830b commit 6a320b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

infrastructure/aws/lambda/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN uv export --frozen --extra lambda > requirements.txt && \
1818
uv pip install --compile-bytecode --target ${LAMBDA_TASK_ROOT} -r requirements.txt
1919

2020
# Reduce package size and remove useless files
21-
WORKDIR /asset
21+
WORKDIR ${LAMBDA_TASK_ROOT}
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 /asset/handler.py
30+
COPY infrastructure/aws/lambda/handler.py ${LAMBDA_TASK_ROOT}/handler.py

uv.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)