Skip to content

Commit 2762944

Browse files
hrodmnbransonf
andauthored
fix: install compilation dependency for numexpr (#109)
* Update Dockerfile to compile numexpr Co-authored-by: Branson Fox <[email protected]>
1 parent 7536c55 commit 2762944

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/conventional-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: Get Release Bot Token
1818
id: get-token
19-
uses: getsentry/action-github-app-token@v1
19+
uses: getsentry/action-github-app-token@v3
2020
with:
2121
app_id: ${{ secrets.DS_RELEASE_BOT_ID }}
2222
private_key: ${{ secrets.DS_RELEASE_BOT_PRIVATE_KEY }}

lib/titiler-pgstac-api/runtime/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:${PYTHON_VERSION}
44
WORKDIR /tmp
55
RUN python -m pip install pip -U
66

7+
# Install system dependencies to compile (numexpr)
8+
RUN yum install -y gcc-c++
9+
710
COPY runtime/requirements.txt requirements.txt
811
RUN python -m pip install -r requirements.txt "mangum>=0.14,<0.15" -t /asset
912

13+
# Remove system dependencies
14+
RUN yum remove -y gcc-c++
15+
1016
# Reduce package size and remove useless files
1117
RUN find /asset -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\///' | sed 's/.cpython-[0-9]*//'); cp $f $n; done;
1218
RUN find /asset -type d -name '__pycache__' -print0 | xargs -0 rm -rf

0 commit comments

Comments
 (0)