updating to build command in script

doesn't have webpack version issue

fixes #20
This commit is contained in:
tambien 2018-06-12 12:22:13 -04:00
parent f70cf44949
commit c17aa14601

View File

@ -16,8 +16,6 @@ RUN apt-get update && apt-get install -y \
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - && \ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - && \
apt-get install -y nodejs apt-get install -y nodejs
RUN npm install webpack -g
RUN pip install -U https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl RUN pip install -U https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl
@ -27,7 +25,7 @@ RUN pip install -r /tmp/requirements.txt
COPY . /src/ COPY . /src/
WORKDIR /src/static/ WORKDIR /src/static/
RUN npm install && webpack -p RUN npm install && npm run build
WORKDIR /src/server/ WORKDIR /src/server/