File tree Expand file tree Collapse file tree 7 files changed +17
-75
lines changed
Expand file tree Collapse file tree 7 files changed +17
-75
lines changed Original file line number Diff line number Diff line change 22# Dockerfile for cmus
33#
44
5- FROM alpine
5+ FROM alpine:3
66MAINTAINER EasyPi Software Foundation
77
88RUN apk add --no-cache cmus
99
10- VOLUME /etc/cmus
11- WORKDIR /etc/cmus
10+ VOLUME /root/.config/cmus
1211
13- ENV CMUS_HOME=/etc /cmus
12+ ENV CMUS_HOME=/root/.config /cmus
1413ENV CMUS_SOCKET=0.0.0.0:3000
15- ENV USERNAME=root
16- ENV PASSWORD=secret
1714
1815EXPOSE 3000
1916
20- CMD set -xe \
21- && echo "set passwd=$PASSWORD" > rc \
22- && cmus
17+ ENTRYPOINT cmus
Original file line number Diff line number Diff line change 44[ cmus] [ 1 ] is a small, fast and powerful console music player for Unix-like operating systems.
55
66
7- ## docker-compose.yml
8-
9- ``` yaml
10- cmus :
11- image : vimagick/cmus
12- ports :
13- - " 3000:3000"
14- volumes :
15- - ./data:/etc/cmus
16- - ~/music:/root/music
17- devices :
18- - /dev/snd
19- environment :
20- - PASSWORD=secret
21- tty : yes
22- restart : unless-stopped
23- ` ` `
24-
257## up and running
268
279``` bash
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ set passwd=secret
Original file line number Diff line number Diff line change 1- cmus :
2- image : vimagick/cmus
3- ports :
4- - " 3000:3000"
5- volumes :
6- - ./data:/etc/cmus
7- - ~/music:/root/music
8- devices :
9- - /dev/snd
10- environment :
11- - PASSWORD=secret
12- tty : yes
13- restart : unless-stopped
1+ services :
2+ cmus :
3+ image : easypi/cmus
4+ ports :
5+ - " 3000:3000"
6+ volumes :
7+ - ./data/etc:/root/.config/cmus
8+ - ./data/var:/root/music
9+ devices :
10+ - /dev/snd
11+ tty : yes
12+ restart : unless-stopped
You can’t perform that action at this time.
0 commit comments