File size: 1,137 Bytes
243f395 3dbe011 243f395 3dbe011 243f395 6f2f547 243f395 6f2f547 243f395 fa76f5f c6215d1 243f395 c6215d1 243f395 c6215d1 3dbe011 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
FROM 686901913580.dkr.ecr.eu-west-1.amazonaws.com/lambda-gdal-runner:latest
# Include global arg in this stage of the build
ARG LAMBDA_TASK_ROOT="/var/task"
ARG PYTHONPATH="${LAMBDA_TASK_ROOT}:${PYTHONPATH}:/usr/local/lib/python3/dist-packages"
# Set working directory to function root directory
WORKDIR ${LAMBDA_TASK_ROOT}
COPY ./src ${LAMBDA_TASK_ROOT}/src
COPY ./machine_learning_models ${LAMBDA_TASK_ROOT}/machine_learning_models
RUN ls -l /usr/bin/which
RUN /usr/bin/which python
RUN python -v
RUN echo "PYTHONPATH: ${PYTHONPATH}."
RUN echo "PATH: ${PATH}."
RUN echo "LAMBDA_TASK_ROOT: ${LAMBDA_TASK_ROOT}."
RUN ls -l ${LAMBDA_TASK_ROOT}
RUN ls -ld ${LAMBDA_TASK_ROOT}
RUN ls -l ${LAMBDA_TASK_ROOT}/machine_learning_models
RUN python -c "import sys; print(sys.path)"
RUN python -c "import cv2"
RUN python -c "import geopandas"
RUN python -c "import onnxruntime"
RUN python -c "import rasterio"
RUN python -c "import awslambdaric"
RUN python -m pip list
RUN python -m pip freeze
RUN df -h
RUN ls -l /lambda-entrypoint.sh
RUN ls -l ${LAMBDA_TASK_ROOT}/src/
# ENTRYPOINT ["/lambda-entrypoint.sh"]
CMD [ "src.app.lambda_handler" ]
|