diff --git a/Dockerfile b/Dockerfile index c1f39f7..feac31b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,6 @@ RUN apt-get -qq update && apt-get -qq install -y curl ca-certificates libx11-xcb curl -sL https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linux-x64.tar.gz | tar xz --strip-components=1 && \ rm -rf /var/lib/apt/lists/* RUN npm install puppeteer express -ENV NODE_PATH=/opt/node/node_modules # install requirements COPY requirements.txt /opt/pyspider/requirements.txt @@ -32,6 +31,9 @@ ADD ./ /opt/pyspider WORKDIR /opt/pyspider RUN pip install -e .[all] +# Create a symbolic link to node_modules +RUN ln -s /opt/node/node_modules ./node_modules + #VOLUME ["/opt/pyspider"] ENTRYPOINT ["pyspider"]