File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11FROM --platform=linux/amd64 public.ecr.aws/sam/build-python3.12:latest
22
3+ RUN dnf install -y gcc-c++
4+
35WORKDIR /tmp
46
57COPY raster_api/runtime /tmp/raster
68RUN pip install mangum /tmp/raster["psycopg-binary" ] -t /asset --no-binary pydantic
79RUN rm -rf /tmp/raster
10+ RUN cp /usr/lib64/libexpat.so.1 /asset/
811
912# # Reduce package size and remove useless files
1013RUN cd /asset && find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\/ //' | sed 's/.cpython-[0-9]*//' ); cp $f $n; done;
@@ -14,8 +17,9 @@ RUN find /asset -type d -a -name 'tests' -print0 | xargs -0 rm -rf
1417RUN rm -rdf /asset/numpy/doc/ /asset/boto3* /asset/botocore* /asset/bin /asset/geos_license /asset/Misc
1518
1619COPY raster_api/runtime/handler.py /asset/handler.py
20+ RUN dnf remove -y gcc-c++
1721
1822WORKDIR /asset
1923RUN python -c "from handler import handler; print('All Good')"
2024
21- CMD ["echo" , "hello world" ]
25+ CMD ["echo" , "hello world" ]
You can’t perform that action at this time.
0 commit comments