added Docker support, fixes issue #8

This commit is contained in:
Ondrej Zara 2019-10-28 11:41:14 +01:00
parent b193d2d1e5
commit 3c0b41ab7f
3 changed files with 20 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
node_modules

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM node:10
WORKDIR /cyp
RUN ["mkdir", "_youtube"]
COPY package.json .
RUN npm i
COPY index.js .
COPY app ./app
EXPOSE 8080
CMD ["node", "."]

View file

@ -28,6 +28,16 @@ node .
Point your browser to http://localhost:8080 to open the interface. Specify a custom MPD address via a `server` querystring argument (`?server=localhost:6655`). Point your browser to http://localhost:8080 to open the interface. Specify a custom MPD address via a `server` querystring argument (`?server=localhost:6655`).
## Instalation - Docker
Alternatively, you can use Docker to run CYP.
```sh
git clone https://github.com/ondras/cyp.git && cd cyp
docker build -t cyp .
docker run --network=host cyp
```
## Technology ## Technology
- Connected to MPD via WebSockets (using the [ws2mpd](https://github.com/ondras/ws2mpd/) bridge) - Connected to MPD via WebSockets (using the [ws2mpd](https://github.com/ondras/ws2mpd/) bridge)