mirror of
https://github.com/linuxserver/docker-audacity.git
synced 2025-06-06 17:48:43 +02:00
39 lines
1.1 KiB
Docker
39 lines
1.1 KiB
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:jammy
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG AUDACITY_VERSION
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="aptalca"
|
|
|
|
RUN \
|
|
echo "**** install build packages ****" && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
libnss3 && \
|
|
echo "**** install audacity ****" && \
|
|
if [ -z ${AUDACITY_VERSION+x} ]; then \
|
|
AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \
|
|
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \
|
|
fi && \
|
|
mkdir -p /app/audacity/ && \
|
|
curl -o \
|
|
/app/audacity/audacity -L \
|
|
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-linux-${AUDACITY_VERSION}-x64.AppImage" && \
|
|
chmod +x /app/audacity/audacity && \
|
|
echo "**** cleanup ****" && \
|
|
rm -rf \
|
|
/tmp/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/*
|
|
|
|
# add local files
|
|
COPY /root /
|
|
|
|
# ports and volumes
|
|
EXPOSE 3000
|
|
|
|
VOLUME /config
|