docker-audacity/Dockerfile

37 lines
1 KiB
Text
Raw Normal View History

2021-07-26 13:22:59 -04:00
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal
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"
RUN \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y \
2021-07-26 13:22:59 -04:00
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 && \
2021-07-26 13:22:59 -04:00
mkdir -p /app/audacity/ && \
curl -o \
2021-07-26 13:22:59 -04:00
/app/audacity/audacity -L \
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-linux-${AUDACITY_VERSION}-x86_64.AppImage" && \
chmod +x /app/audacity/audacity && \
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
VOLUME /config