vladholubiev / serverless-libreoffice

Run LibreOffice in AWS Lambda to create PDFs & convert documents
https://vladholubiev.com/serverless-libreoffice
513 stars 75 forks source link

Docker deamon exits on tar -xf lo.tar.gz with (duplicates of file paths not supported): #42

Open yoransabern opened 2 years ago

yoransabern commented 2 years ago

I'm trying to create a aws lambda docker image with the lo.tar.gz pre-unzipped inside the image using the following dockerfile:

FROM public.ecr.aws/lambda/python:3.8

RUN yum install -y tar
RUN yum install -y gzip
RUN yum install -y wget

RUN wget https://github.com/vladgolubev/serverless-libreoffice/releases/download/v6.4.0.1/lo.tar.gz
RUN tar -xf lo.tar.gz --verbose

I get the following error from the docker daemon when building this dockerfile:

Error response from daemon: Error processing tar file(duplicates of file paths not supported): 
Failed to deploy '<unknown> Dockerfile: ../Dockerfile': Can't retrieve image ID from build stream

I did not get this error with previous versions of this serverless-libreoffice package, only on the python 3.8 supported version.

Any ideas what goes wrong? I've also tried running this with a different base image and i get the same error.