containerdesk/xfce/Dockerfile

63 lines
2 KiB
Docker

FROM docker.io/linuxserver/rdesktop:fedora-xfce
# set version label
ARG TARGETARCH
ARG BUILD_DATE
ARG VERSION
ARG SEABIRD_VERSION=0.5.1
ARG K9S_VERSION=0.32.5
LABEL build_version="based on Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="Michael Trip"
WORKDIR /tmp
RUN dnf install -y wget curl
RUN \
case ${TARGETARCH} in \
"amd64") DOWNLOAD_ARCH=x86_64 ;; \
"arm64") DOWNLOAD_ARCH=aarch64 ;; \
esac \
&& curl -L https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.5.2-366/OpenLens-6.5.2-366.${DOWNLOAD_ARCH}.rpm --output /tmp/openlens.rpm
RUN curl -L https://github.com/derailed/k9s/releases/download/v${K9S_VERSION}/k9s_Linux_${TARGETARCH}.tar.gz --output /tmp/k9s.tar.gz
RUN curl -L https://github.com/getseabird/seabird/releases/download/v${SEABIRD_VERSION}/seabird_linux_${TARGETARCH}.tar.gz --output /tmp/seabird.tar.gz
RUN \
echo "**** install packages ****" && \
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo && \
dnf install -y --setopt=install_weak_deps=False --best \
terminator \
tilix \
kubernetes-client \
libreoffice \
pluma \
neofetch \
adwaita-gtk2-theme \
adwaita-icon-theme \
papirus-icon-theme \
thunderbird \
firefox \
code && \
dnf localinstall -y /tmp/openlens.rpm && \
tar -zxvf /tmp/k9s.tar.gz && \
tar -zxvf /tmp/seabird.tar.gz && \
mv /tmp/k9s /usr/local/bin && \
mv /tmp/seabird /usr/local/bin && \
echo "**** cleanup ****" && \
dnf autoremove -y && \
dnf clean all && \
rm -rf \
/config/.cache \
/tmp/*
# Remove this due to errors
RUN dnf -y remove xfce4-power-manager && rm -rf /etc/xdg/autostart/xfce-polkit.desktop && dnf clean all
# add local files
COPY /root /
# ports and volumes
EXPOSE 3389
VOLUME /home
VOLUME /config