2016-11-17 04:33:15 +00:00
|
|
|
FROM ubuntu:14.04
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
pkg-config \
|
|
|
|
libpng-dev \
|
|
|
|
libjpeg8-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libblas-dev \
|
|
|
|
liblapack-dev \
|
|
|
|
libatlas-base-dev \
|
|
|
|
gfortran \
|
|
|
|
python \
|
|
|
|
python-dev \
|
|
|
|
python-pip \
|
|
|
|
curl && \
|
|
|
|
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - && \
|
|
|
|
apt-get install -y nodejs
|
|
|
|
|
2017-01-13 22:52:22 +00:00
|
|
|
|
|
|
|
RUN pip install -U https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl
|
2016-11-17 04:33:15 +00:00
|
|
|
|
|
|
|
COPY ./server/requirements.txt /tmp/
|
|
|
|
RUN pip install -r /tmp/requirements.txt
|
|
|
|
|
|
|
|
COPY . /src/
|
|
|
|
|
|
|
|
WORKDIR /src/static/
|
2018-06-12 16:22:13 +00:00
|
|
|
RUN npm install && npm run build
|
2016-11-17 04:33:15 +00:00
|
|
|
|
|
|
|
WORKDIR /src/server/
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT python server.py
|