mirror of
https://github.com/linuxserver/docker-ferdium.git
synced 2026-01-14 17:12:50 +08:00
54 lines
1.5 KiB
Docker
54 lines
1.5 KiB
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM ghcr.io/linuxserver/baseimage-selkies:arm64v8-debiantrixie
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG FERDIUM_VERSION
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="thelamer"
|
|
|
|
# title
|
|
ENV TITLE=Ferdium
|
|
|
|
RUN \
|
|
echo "**** add icon ****" && \
|
|
curl -o \
|
|
/usr/share/selkies/www/icon.png \
|
|
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/ferdium-logo.png && \
|
|
echo "**** install packages ****" && \
|
|
apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install --no-install-recommends -y \
|
|
libatspi2.0-0 \
|
|
libgtk-3-0 \
|
|
libnotify4 \
|
|
libnss3 \
|
|
libsecret-1-0 && \
|
|
echo "**** install from ferdium from deb ****" && \
|
|
if [ -z ${FERDIUM_VERSION+x} ]; then \
|
|
FERDIUM_VERSION=$(curl -sX GET "https://api.github.com/repos/ferdium/ferdium-app/releases/latest" \
|
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
|
fi && \
|
|
cd /tmp && \
|
|
curl -o \
|
|
/tmp/ferdium.deb -L \
|
|
"https://github.com/ferdium/ferdium-app/releases/download/${FERDIUM_VERSION}/Ferdium-linux-$(echo $FERDIUM_VERSION | sed 's/^v//g')-arm64.deb" && \
|
|
dpkg -i ferdium.deb && \
|
|
echo "**** cleanup ****" && \
|
|
apt-get autoclean && \
|
|
rm -rf \
|
|
/config/.cache \
|
|
/config/.launchpadlib \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/* \
|
|
/tmp/*
|
|
|
|
# add local files
|
|
COPY /root /
|
|
|
|
# ports and volumes
|
|
EXPOSE 3000
|
|
VOLUME /config
|