Update to use new dockerfile format
This commit is contained in:
118
Dockerfile
118
Dockerfile
@@ -1,34 +1,27 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-selkies:ubuntunoble
|
||||
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ARG XPIPE_VERSION=20.2
|
||||
ARG XPIPE_REPOSITORY=xpipe-io/xpipe
|
||||
ARG XPIPE_PACKAGE=xpipe
|
||||
|
||||
# FROM ghcr.io/linuxserver/baseimage-selkies:ubuntunoble AS build
|
||||
FROM lscr.io/linuxserver/webtop:ubuntu-kde AS build
|
||||
|
||||
ENV TITLE="XPipe Webtop"
|
||||
|
||||
# prevent Ubuntu's firefox stub from being installed
|
||||
# COPY /root/etc/apt/preferences.d/firefox-no-snap /etc/apt/preferences.d/firefox-no-snap
|
||||
|
||||
# title
|
||||
# Title and Selkies specific envs
|
||||
ENV TITLE="XPipe Webtop" \
|
||||
NO_GAMEPAD=true
|
||||
|
||||
RUN \
|
||||
echo "**** add icon ****" && \
|
||||
curl -o \
|
||||
/usr/share/selkies/www/icon.png \
|
||||
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
|
||||
echo "**** install packages ****" && \
|
||||
add-apt-repository ppa:xtradeb/apps && \
|
||||
# add-apt-repository -y ppa:mozillateam/ppa && \
|
||||
ARG XPIPE_VERSION
|
||||
ARG XPIPE_REPOSITORY
|
||||
ARG XPIPE_PACKAGE
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
# prevent Ubuntu's firefox stub from being installed
|
||||
COPY /root/etc/apt/preferences.d/firefox-no-snap /etc/apt/preferences.d/firefox-no-snap
|
||||
|
||||
RUN echo "**** install base packages ****" && \
|
||||
add-apt-repository -y ppa:mozillateam/ppa && \
|
||||
add-apt-repository -y ppa:xtradeb/apps && \
|
||||
apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install --no-install-recommends -y \
|
||||
chromium \
|
||||
# firefox \
|
||||
dolphin \
|
||||
firefox \
|
||||
gwenview \
|
||||
kde-config-gtk-style \
|
||||
kdialog \
|
||||
@@ -36,7 +29,6 @@ RUN \
|
||||
khotkeys \
|
||||
kio-extras \
|
||||
knewstuff-dialog \
|
||||
konsole \
|
||||
ksystemstats \
|
||||
kubuntu-settings-desktop \
|
||||
kubuntu-wallpapers \
|
||||
@@ -44,23 +36,22 @@ RUN \
|
||||
kwin-addons \
|
||||
kwin-x11 \
|
||||
kwrite \
|
||||
plasma-desktop \
|
||||
plasma-workspace \
|
||||
qml-module-qt-labs-platform \
|
||||
wget \
|
||||
git \
|
||||
zip \
|
||||
unzip \
|
||||
git \
|
||||
wget \
|
||||
kmod \
|
||||
nano \
|
||||
mousepad \
|
||||
vim \
|
||||
plasma-desktop \
|
||||
plasma-workspace \
|
||||
plymouth-theme-kubuntu-logo \
|
||||
qml-module-qt-labs-platform \
|
||||
fonts-noto \
|
||||
fonts-noto-cjk \
|
||||
systemsettings && \
|
||||
echo "**** application tweaks ****" && \
|
||||
sed -i \
|
||||
's#^Exec=.*#Exec=/usr/local/bin/wrapped-chromium#g' \
|
||||
/usr/share/applications/chromium.desktop && \
|
||||
echo "**** kde tweaks ****" && \
|
||||
sed -i \
|
||||
's/applications:org.kde.discover.desktop,/applications:org.kde.konsole.desktop,/g' \
|
||||
/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get remove -y plasma-welcome && \
|
||||
apt-get autoclean && \
|
||||
rm -rf \
|
||||
/config/.cache \
|
||||
@@ -81,29 +72,21 @@ COPY /root /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 3000
|
||||
EXPOSE 3001
|
||||
VOLUME /config
|
||||
|
||||
# RUN \
|
||||
# echo "**** add icon ****" && \
|
||||
# curl -L -o \
|
||||
# /kclient/public/icon.png \
|
||||
# "https://rawcdn.githack.com/xpipe-io/xpipe/a097ae7a41131fa358b5343345557ad00a45c309/dist/logo/logo.png"
|
||||
|
||||
RUN echo "**** Wezterm ****" && \
|
||||
curl -fsSL https://apt.fury.io/wez/gpg.key | gpg --yes --dearmor -o /usr/share/keyrings/wezterm-fury.gpg && \
|
||||
echo 'deb [signed-by=/usr/share/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' | tee /etc/apt/sources.list.d/wezterm.list && \
|
||||
chmod 644 /usr/share/keyrings/wezterm-fury.gpg && \
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends -y wezterm
|
||||
RUN \
|
||||
echo "**** add icon ****" && \
|
||||
curl -L -o \
|
||||
/usr/share/selkies/www/icon.png \
|
||||
"https://rawcdn.githack.com/xpipe-io/xpipe/a097ae7a41131fa358b5343345557ad00a45c309/dist/logo/logo.png"
|
||||
|
||||
RUN echo "**** VsCode **** ($TARGETPLATFORM)" && \
|
||||
wget -O vscode.deb "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" && \
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends -y ./vscode.deb && \
|
||||
rm vscode.deb && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then VSCODE_LINK="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64"; else VSCODE_LINK="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-arm64"; fi && \
|
||||
wget -O vscode.deb "${VSCODE_LINK}" && \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends -y "./vscode.deb" && \
|
||||
rm "./vscode.deb"
|
||||
|
||||
RUN echo "**** install tool packages ****" && \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
@@ -123,7 +106,7 @@ RUN echo "**** install tool packages ****" && \
|
||||
tmux \
|
||||
screen \
|
||||
remmina-plugin-rdp && \
|
||||
apt-get autoclean
|
||||
apt-get autoclean
|
||||
|
||||
RUN echo "**** tailscale ****" && curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/noble.noarmor.gpg | tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null && \
|
||||
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/noble.tailscale-keyring.list | tee /etc/apt/sources.list.d/tailscale.list && \
|
||||
@@ -136,7 +119,7 @@ RUN echo "**** netbird ****" && \
|
||||
curl -sSL https://pkgs.netbird.io/debian/public.key | gpg --dearmor --output /usr/share/keyrings/netbird-archive-keyring.gpg && \
|
||||
echo 'deb [signed-by=/usr/share/keyrings/netbird-archive-keyring.gpg] https://pkgs.netbird.io/debian stable main' | tee /etc/apt/sources.list.d/netbird.list && \
|
||||
apt-get update && \
|
||||
pt-get install netbird
|
||||
apt-get install netbird
|
||||
|
||||
RUN echo "**** teleport ****" && curl https://apt.releases.teleport.dev/gpg -o /etc/apt/keyrings/teleport-archive-keyring.asc && \
|
||||
. /etc/os-release && \
|
||||
@@ -145,7 +128,8 @@ RUN echo "**** teleport ****" && curl https://apt.releases.teleport.dev/gpg -o /
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install teleport
|
||||
|
||||
RUN echo "**** kubectl **** ($TARGETPLATFORM)" && \
|
||||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
|
||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then KUBECTL_LINK="https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"; else KUBECTL_LINK="https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"; fi && \
|
||||
curl -LO "${KUBECTL_LINK}" && \
|
||||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
|
||||
rm kubectl
|
||||
|
||||
@@ -155,12 +139,14 @@ RUN echo "**** aws ****" && curl "https://awscli.amazonaws.com/awscli-exe-linux-
|
||||
rm -rf "/tmp/aws" "/tmp/awscliv2.zip"
|
||||
|
||||
RUN echo "**** aws ssm **** ($TARGETPLATFORM)" && \
|
||||
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "/tmp/session-manager-plugin.deb" && \
|
||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then SSM_LINK="https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb"; else SSM_LINK="https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_arm64/session-manager-plugin.deb"; fi && \
|
||||
curl "${SSM_LINK}" -o "/tmp/session-manager-plugin.deb" && \
|
||||
dpkg -i "/tmp/session-manager-plugin.deb" && \
|
||||
rm -rf "/tmp/aws" "/tmp/session-manager-plugin.deb"
|
||||
|
||||
RUN echo "**** zellij **** ($TARGETPLATFORM)" && \
|
||||
curl -LO "https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz" && \
|
||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ZELLIJ_LINK="https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz"; else ZELLIJ_LINK="https://github.com/zellij-org/zellij/releases/latest/download/zellij-aarch64-unknown-linux-musl.tar.gz"; fi && \
|
||||
curl -LO "${ZELLIJ_LINK}" && \
|
||||
tar -xvf zellij*.tar.gz && \
|
||||
install -o root -g root -m 0755 zellij /usr/local/bin/zellij && \
|
||||
rm zellij && \
|
||||
@@ -169,19 +155,19 @@ RUN echo "**** zellij **** ($TARGETPLATFORM)" && \
|
||||
RUN echo "**** dolphin tweaks ****" && printf "x-scheme-handler/file=org.kde.dolphin.desktop\n" >> /usr/share/applications/kde-mimeapps.list
|
||||
|
||||
RUN echo "**** XPipe **** ($TARGETPLATFORM)" && \
|
||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then XPIPE_ARTIFACT="xpipe-installer-linux-x86_64.deb"; else XPIPE_ARTIFACT="xpipe-installer-linux-arm64.deb"; fi && \
|
||||
wget "https://github.com/$XPIPE_REPOSITORY/releases/download/$XPIPE_VERSION/${XPIPE_ARTIFACT}" && \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends -y ".xpipe-installer-linux-x86_64.deb" && \
|
||||
apt-get install --no-install-recommends -y "./${XPIPE_ARTIFACT}" && \
|
||||
rm "./${XPIPE_ARTIFACT}"
|
||||
|
||||
# RUN mkdir -p "/etc/xdg/autostart/" && ln -s "/usr/share/applications/$XPIPE_PACKAGE.desktop" "/etc/xdg/autostart/$XPIPE_PACKAGE.desktop"
|
||||
RUN mkdir -p "/etc/xdg/autostart/" && ln -s "/usr/share/applications/$XPIPE_PACKAGE.desktop" "/etc/xdg/autostart/$XPIPE_PACKAGE.desktop"
|
||||
|
||||
RUN echo "**** kde tweaks ****" && \
|
||||
sed -i \
|
||||
"s/applications:org.kde.discover.desktop,/,/g" \
|
||||
/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml && \
|
||||
sed -i \
|
||||
"s#preferred://browser#applications:chromium.desktop,applications:org.kde.konsole.desktop,applications:code.desktop,applications:org.remmina.Remmina.desktop,applications:$XPIPE_PACKAGE.desktop#g" \
|
||||
/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml
|
||||
|
||||
"s#preferred://browser#applications:firefox.desktop,applications:org.kde.konsole.desktop,applications:code.desktop,applications:org.remmina.Remmina.desktop,applications:$XPIPE_PACKAGE.desktop#g" \
|
||||
/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml
|
||||
Reference in New Issue
Block a user