Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
togakangaroo opened this issue Jan 2, 2019 · 0 comments
Open

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

togakangaroo opened this issue Jan 2, 2019 · 0 comments

Comments

@togakangaroo
Copy link

togakangaroo commented Jan 2, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant