mirror of
https://github.com/linuxserver/docker-audacity.git
synced 2025-06-07 18:18:42 +02:00
rebase to ubuntu and build latest from source
This commit is contained in:
parent
2d2ca05ac3
commit
4c7c5d9401
7 changed files with 168 additions and 67 deletions
|
@ -1,30 +1,66 @@
|
|||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-alpine
|
||||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-focal as buildstage
|
||||
|
||||
ARG AUDACITY_VERSION
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libasound2-dev \
|
||||
libavformat-dev \
|
||||
libgtk2.0-dev \
|
||||
python3-minimal \
|
||||
libjack-jackd2-dev && \
|
||||
echo "**** build 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/build && \
|
||||
curl -o \
|
||||
/tmp/audacity.tar.xz -L \
|
||||
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-minsrc-${AUDACITY_VERSION}.tar.xz" && \
|
||||
tar xf \
|
||||
/tmp/audacity.tar.xz -C \
|
||||
/app/audacity --strip-components=1 && \
|
||||
cd /app/audacity/build && \
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_wxwidgets=local -Daudacity_use_ffmpeg=loaded .. && \
|
||||
make -j6 && \
|
||||
make install
|
||||
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-focal
|
||||
|
||||
# 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 packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl && \
|
||||
if [ -z ${AUDACITY_VERSION+x} ]; then \
|
||||
AUDACITY_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
||||
&& awk '/^P:audacity$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
|
||||
fi && \
|
||||
apk add --no-cache \
|
||||
audacity==${AUDACITY_VERSION} && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
echo "**** install packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
libasound2 \
|
||||
libavformat58 \
|
||||
libgtk2.0-0 \
|
||||
libjack-jackd2-0 \
|
||||
python3-minimal && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY /root /
|
||||
COPY --from=buildstage /usr/local/share/audacity /usr/local/share/audacity
|
||||
COPY --from=buildstage /usr/local/lib/audacity /usr/local/lib/audacity
|
||||
COPY --from=buildstage /usr/local/bin/audacity /usr/local/bin/audacity
|
||||
COPY --from=buildstage /app/audacity/build/bin/Release/locale /usr/local/share/locale
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 3000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue