2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

update cmus

This commit is contained in:
kevin
2025-10-09 15:23:34 +08:00
parent 23b74a3bf5
commit 6f342f6d1b
7 changed files with 17 additions and 75 deletions

View File

@@ -2,21 +2,16 @@
# Dockerfile for cmus
#
FROM alpine
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache cmus
VOLUME /etc/cmus
WORKDIR /etc/cmus
VOLUME /root/.config/cmus
ENV CMUS_HOME=/etc/cmus
ENV CMUS_HOME=/root/.config/cmus
ENV CMUS_SOCKET=0.0.0.0:3000
ENV USERNAME=root
ENV PASSWORD=secret
EXPOSE 3000
CMD set -xe \
&& echo "set passwd=$PASSWORD" > rc \
&& cmus
ENTRYPOINT cmus

View File

@@ -4,24 +4,6 @@ cmus
[cmus][1] is a small, fast and powerful console music player for Unix-like operating systems.
## docker-compose.yml
```yaml
cmus:
image: vimagick/cmus
ports:
- "3000:3000"
volumes:
- ./data:/etc/cmus
- ~/music:/root/music
devices:
- /dev/snd
environment:
- PASSWORD=secret
tty: yes
restart: unless-stopped
```
## up and running
```bash

View File

@@ -1,22 +0,0 @@
#
# Dockerfile for cmus-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache cmus
VOLUME /etc/cmus
WORKDIR /etc/cmus
ENV CMUS_HOME=/etc/cmus
ENV CMUS_SOCKET=0.0.0.0:3000
ENV USERNAME=root
ENV PASSWORD=secret
EXPOSE 3000
CMD set -xe \
&& echo "set passwd=$PASSWORD" > rc \
&& cmus

View File

@@ -1,13 +0,0 @@
cmus:
image: easypi/cmus-arm
ports:
- "3000:3000"
volumes:
- ./data:/etc/cmus
- ~/music:/root/music
devices:
- /dev/snd
environment:
- PASSWORD=secret
tty: yes
restart: unless-stopped

1
cmus/data/etc/rc Normal file
View File

@@ -0,0 +1 @@
set passwd=secret

0
cmus/data/var/.gitkeep Normal file
View File

View File

@@ -1,13 +1,12 @@
cmus:
image: vimagick/cmus
ports:
- "3000:3000"
volumes:
- ./data:/etc/cmus
- ~/music:/root/music
devices:
- /dev/snd
environment:
- PASSWORD=secret
tty: yes
restart: unless-stopped
services:
cmus:
image: easypi/cmus
ports:
- "3000:3000"
volumes:
- ./data/etc:/root/.config/cmus
- ./data/var:/root/music
devices:
- /dev/snd
tty: yes
restart: unless-stopped