mirror of
https://github.com/linuxserver/docker-airsonic-advanced.git
synced 2026-02-20 06:46:40 +08:00
47 lines
1.3 KiB
Docker
47 lines
1.3 KiB
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG AIRSONIC_ADVANCED_RELEASE
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="thespad"
|
|
|
|
# environment settings
|
|
ENV AIRSONIC_ADVANCED_HOME="/app/airsonic" \
|
|
AIRSONIC_ADVANCED_SETTINGS="/config" \
|
|
LANG="C.UTF-8"
|
|
|
|
RUN \
|
|
echo "**** install runtime packages ****" && \
|
|
apk add --no-cache \
|
|
ffmpeg \
|
|
flac \
|
|
fontconfig \
|
|
lame \
|
|
openjdk17-jre \
|
|
ttf-dejavu \
|
|
vorbis-tools && \
|
|
echo "**** install airsonic advanced ****" && \
|
|
if [ -z ${AIRSONIC_ADVANCED_RELEASE+x} ]; then \
|
|
AIRSONIC_ADVANCED_RELEASE=$(curl -sX GET "https://api.github.com/repos/kagemomiji/airsonic-advanced/releases/latest" \
|
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
|
fi && \
|
|
mkdir -p \
|
|
${AIRSONIC_ADVANCED_HOME} && \
|
|
curl -o \
|
|
${AIRSONIC_ADVANCED_HOME}/airsonic.war -L \
|
|
"https://github.com/kagemomiji/airsonic-advanced/releases/download/${AIRSONIC_ADVANCED_RELEASE}/airsonic.war" && \
|
|
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
|
echo "**** cleanup ****" && \
|
|
rm -rf \
|
|
/tmp/*
|
|
|
|
# add local files
|
|
COPY root/ /
|
|
|
|
# ports and volumes
|
|
EXPOSE 4040
|