I am trying to build and upload my lambda container,but if fails on line RUN apt-get --command not found
I also tried with Run apk but it fails too with error --command not found
How can I install my package with public.ecr.aws/lambda/python:3.7 ?
FROM public.ecr.aws/lambda/python:3.7
WORKDIR /code
COPY . .
COPY policy.xml /etc/ImageMagick-6
RUN pip install -r requirements.txt
RUN apt-get update && apt install -y tesseract-ocr-heb
RUN apt-get -y install ghostscript
EXPOSE 80
CMD ["app.lambda_handler"]
I also tried with
- Run apk but it fails too with error --command not found
- Run yum install -y tesseract-ocr-heb and got error-- One of the configured repositories failed (Unknown), #4 1.327 and yum doesn't have enough cached data to continue.