docker-audacity/Dockerfile

57 lines
1.6 KiB
Text
Raw Permalink Normal View History

2022-12-13 18:49:14 +00:00
# syntax=docker/dockerfile:1
2024-08-19 15:31:14 -04:00
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
2021-07-26 13:22:59 -04:00
# set version label
ARG BUILD_DATE
ARG VERSION
ARG AUDACITY_VERSION
2021-07-26 13:22:59 -04:00
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
2023-03-19 15:07:04 -07:00
# title
ENV TITLE=Audacity
RUN \
echo "**** add icon ****" && \
curl -o \
/kclient/public/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/audacity-logo.png && \
2023-03-28 20:35:51 -07:00
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
2023-03-28 20:35:51 -07:00
python3-xdg \
libatk1.0 \
libatk-bridge2.0 \
libnss3 \
libportaudio2 && \
2021-07-26 13:22:59 -04:00
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 && \
cd /tmp && \
curl -o \
/tmp/audacity.app -L \
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-linux-${AUDACITY_VERSION}-x64-20.04.AppImage" && \
chmod +x /tmp/audacity.app && \
./audacity.app --appimage-extract && \
mv squashfs-root /opt/audacity && \
2023-03-28 20:35:51 -07:00
ln -s \
/usr/lib/x86_64-linux-gnu/libportaudio.so.2 \
/usr/lib/x86_64-linux-gnu/libportaudio.so && \
2024-08-19 15:31:14 -04:00
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
rm -rf \
2021-07-26 13:22:59 -04:00
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
2021-04-07 19:11:23 -04:00
# add local files
COPY /root /
# ports and volumes
EXPOSE 3000
2022-12-13 18:49:14 +00:00
2021-04-07 19:11:23 -04:00
VOLUME /config