Skip to content

The old version of node used won't run with textract #1

@togakangaroo

Description

@togakangaroo

textract seems to be using the ...spread operator which won't work with the node 4.whatever hard coded in this file.

I had to do the following:

FROM sidhuko/textract
RUN npm i -g n && n stable
RUN apt-get update && apt-get install -y antiword
RUN npm install -g textract
COPY . /app
WORKDIR /app

ENTRYPOINT ["textract"]

(only the updating of node with n is relevant here, the other stuff is just things that I needed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions