added Docker support, fixes issue #8
This commit is contained in:
parent
b193d2d1e5
commit
3c0b41ab7f
3 changed files with 20 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules
|
9
Dockerfile
Normal file
9
Dockerfile
Normal 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", "."]
|
10
README.md
10
README.md
|
@ -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`).
|
||||
|
||||
## 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
|
||||
- Connected to MPD via WebSockets (using the [ws2mpd](https://github.com/ondras/ws2mpd/) bridge)
|
||||
|
|
Loading…
Reference in a new issue