Merge pull request #6 from python273/add_dockerfile

Add Dockerfile
This commit is contained in:
Yotam Mann 2016-11-29 12:05:50 -05:00 committed by GitHub
commit 36a177b7b3
175 changed files with 51 additions and 9 deletions

35
Dockerfile Normal file
View File

@ -0,0 +1,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.11.0rc2-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

View File

@ -17,6 +17,15 @@ Built by [Yotam Mann](https://github.com/tambien) with friends on the Magenta an
A.I. Duet is composed of two parts, the front-end which is in the 'static' folder and the back-end which is in the 'server' folder. The front-end client creates short midi files using the user's input which is sent to the server. The server takes that midi input and continues it using [Magenta](https://github.com/tensorflow/magenta) which is then returned back to the client.
## DOCKER
```bash
$ sudo docker build -t ai-duet .
$ sudo docker run -t -p 8080:8080 ai-duet
```
You can now play with A.I. Duet at [localhost:8080](http://localhost:8080).
## FRONT END
To build the client-side javascript, first install [node](https://nodejs.org) and [webpack](https://webpack.github.io/). Then you can install of the dependencies of the project by typing the following in the terminal:

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Some files were not shown because too many files have changed in this diff Show More