Skip to content

Commit 635b37b

Browse files
authored
Merge pull request #5 from linuxserver/formatting
fix Dockerfile formatting
2 parents 923a4d8 + 60853fb commit 635b37b

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm
24

35
# set version label
@@ -26,6 +28,7 @@ RUN \
2628
"https://github.com/KRTirtho/spotube/releases/download/${SPOTUBE_VERSION}/Spotube-linux-x86_64.deb" && \
2729
apt install -y --no-install-recommends \
2830
/tmp/spotube.deb && \
31+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
2932
echo "**** cleanup ****" && \
3033
apt-get autoclean && \
3134
rm -rf \

Dockerfile.aarch64

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-debianbookworm
24

35
# set version label
@@ -11,24 +13,25 @@ LABEL maintainer="thelamer"
1113
ENV TITLE=Spotube
1214

1315
RUN \
14-
echo "**** add icon ****" && \
15-
curl -o \
16+
echo "**** add icon ****" && \
17+
curl -o \
1618
/kclient/public/icon.png \
1719
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/spotube-logo.png && \
18-
echo "**** install packages ****" && \
19-
apt-get update && \
20-
if [ -z ${SPOTUBE_VERSION+x} ]; then \
20+
echo "**** install packages ****" && \
21+
apt-get update && \
22+
if [ -z ${SPOTUBE_VERSION+x} ]; then \
2123
SPOTUBE_VERSION=$(curl -sX GET "https://api.github.com/repos/KRTirtho/spotube/releases/latest" \
22-
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
23-
fi && \
24-
curl -o \
24+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
25+
fi && \
26+
curl -o \
2527
/tmp/spotube.deb -L \
2628
"https://github.com/KRTirtho/spotube/releases/download/${SPOTUBE_VERSION}/Spotube-linux-aarch64.deb" && \
27-
apt install -y --no-install-recommends \
29+
apt install -y --no-install-recommends \
2830
/tmp/spotube.deb && \
29-
echo "**** cleanup ****" && \
30-
apt-get autoclean && \
31-
rm -rf \
31+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
32+
echo "**** cleanup ****" && \
33+
apt-get autoclean && \
34+
rm -rf \
3235
/config/.cache \
3336
/var/lib/apt/lists/* \
3437
/var/tmp/* \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ services:
126126
- PGID=1000
127127
- TZ=Etc/UTC
128128
volumes:
129-
- /path/to/config:/config
129+
- /path/to/spotube/config:/config
130130
ports:
131131
- 3000:3000
132132
- 3001:3001
@@ -144,7 +144,7 @@ docker run -d \
144144
-e TZ=Etc/UTC \
145145
-p 3000:3000 \
146146
-p 3001:3001 \
147-
-v /path/to/config:/config \
147+
-v /path/to/spotube/config:/config \
148148
--restart unless-stopped \
149149
lscr.io/linuxserver/spotube:latest
150150
```

readme-vars.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,13 @@ available_architectures:
1414
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest" }
1515
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest" }
1616

17-
# development version
18-
development_versions: false
19-
2017
# container parameters
2118
common_param_env_vars_enabled: true
2219
param_container_name: "{{ project_name }}"
23-
param_usage_include_env: true
24-
param_env_vars:
25-
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." }
20+
2621
param_usage_include_vols: true
2722
param_volumes:
28-
- { vol_path: "/config", vol_host_path: "/path/to/config", desc: "Users home directory in the container, stores local files and settings" }
23+
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Users home directory in the container, stores local files and settings" }
2924
param_usage_include_ports: true
3025
param_ports:
3126
- { external_port: "3000", internal_port: "3000", port_desc: "Spotube desktop gui." }
@@ -89,4 +84,4 @@ app_setup_block: |
8984
# changelog
9085
changelogs:
9186
- { date: "09.10.24:", desc: "Add aarch64 support." }
92-
- { date: "26.04.24:", desc: "Initial release." }
87+
- { date: "26.04.24:", desc: "Initial release." }

0 commit comments

Comments
 (0)