forked from Lanjelin/openaudible-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (30 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
35 lines (30 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
LABEL maintainer="hypnotoad08"
ARG OA_VERSION=4.8.1
ENV TITLE="OpenAudible" \
OA_VERSION="${OA_VERSION}" \
DEBIAN_FRONTEND=noninteractive
# keep everything in a single RUN to reduce layers and ensure cleanup happens in the same layer
RUN set -eux; \
# add OpenAudible to openbox menu
sed -i 's|</applications>| <application title="OpenAudible" type="normal">\n <maximized>no</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml; \
echo "**** update packages ****"; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates \
wget \
thunar \
software-properties-common \
libswt-webkit-gtk-4-jni; \
echo "**** installing OpenAudible ${OA_VERSION} ****"; \
wget -q -O /tmp/OpenAudible_${OA_VERSION}_x86_64.sh "https://github.com/openaudible/openaudible/releases/download/v${OA_VERSION}/OpenAudible_${OA_VERSION}_x86_64.sh"; \
chmod +x /tmp/OpenAudible_${OA_VERSION}_x86_64.sh; \
/tmp/OpenAudible_${OA_VERSION}_x86_64.sh -q; \
rm -f /tmp/OpenAudible_${OA_VERSION}_x86_64.sh; \
echo "**** cleanup ****"; \
apt-get purge -y --auto-remove; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY /root /
EXPOSE 3000 3001
VOLUME /config