forked from googlecreativelab/aiexperiments-ai-duet
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
35 lines (27 loc) · 768 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
RUN npm install webpack -g
RUN pip install -U https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0-cp27-none-linux_x86_64.whl && \
pip install magenta ipython
COPY ./server/requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt
COPY . /src/
WORKDIR /src/static/
RUN npm install && webpack -p
WORKDIR /src/server/
EXPOSE 8080
ENTRYPOINT python server.py