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)