Skip to content

Commit 6f342f6

Browse files
committed
update cmus
1 parent 23b74a3 commit 6f342f6

File tree

7 files changed

+17
-75
lines changed

7 files changed

+17
-75
lines changed

cmus/Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,16 @@
22
# Dockerfile for cmus
33
#
44

5-
FROM alpine
5+
FROM alpine:3
66
MAINTAINER EasyPi Software Foundation
77

88
RUN 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
1413
ENV CMUS_SOCKET=0.0.0.0:3000
15-
ENV USERNAME=root
16-
ENV PASSWORD=secret
1714

1815
EXPOSE 3000
1916

20-
CMD set -xe \
21-
&& echo "set passwd=$PASSWORD" > rc \
22-
&& cmus
17+
ENTRYPOINT cmus

cmus/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,6 @@ cmus
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

cmus/arm/Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

cmus/arm/docker-compose.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

cmus/data/etc/rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set passwd=secret

cmus/data/var/.gitkeep

Whitespace-only changes.

cmus/docker-compose.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
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

0 commit comments

Comments
 (0)