mirror of
https://github.com/linuxserver/docker-github-desktop.git
synced 2026-01-09 07:30:49 +08:00
66 lines
2.0 KiB
Docker
66 lines
2.0 KiB
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM ghcr.io/linuxserver/baseimage-selkies:arm64v8-debiantrixie
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG GHDESKTOP_VERSION
|
|
ARG VERSION
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="thelamer"
|
|
|
|
# title
|
|
ENV TITLE=Github-Desktop
|
|
|
|
RUN \
|
|
echo "**** add icon ****" && \
|
|
curl -o \
|
|
/usr/share/selkies/www/icon.png \
|
|
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/github-desktop-icon.png && \
|
|
echo "**** install packages ****" && \
|
|
apt-get update && \
|
|
apt-get install --no-install-recommends -y \
|
|
caja \
|
|
chromium \
|
|
chromium-l10n \
|
|
git \
|
|
ssh-askpass \
|
|
xfce4-terminal && \
|
|
echo "**** install github-desktop ****" && \
|
|
if [ -z ${GHDESKTOP_VERSION+x} ]; then \
|
|
GHDESKTOP_VERSION=$(curl -sX GET "https://api.github.com/repos/shiftkey/desktop/releases/latest" \
|
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
|
fi && \
|
|
curl -o \
|
|
/tmp/ghdesktop.deb -L \
|
|
"https://github.com/shiftkey/desktop/releases/download/${GHDESKTOP_VERSION}/GitHubDesktop-linux-arm64-${GHDESKTOP_VERSION#release-}.deb" && \
|
|
apt install --no-install-recommends -y /tmp/ghdesktop.deb && \
|
|
echo "**** install codium ****" && \
|
|
CODIUM_VERSION=$(curl -sX GET "https://api.github.com/repos/VSCodium/vscodium/releases/latest" \
|
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
|
curl -o \
|
|
/tmp/codium.deb -L \
|
|
"https://github.com/VSCodium/vscodium/releases/download/${CODIUM_VERSION}/codium_${CODIUM_VERSION}_arm64.deb" && \
|
|
apt install --no-install-recommends -y /tmp/codium.deb && \
|
|
echo "**** container tweaks ****" && \
|
|
ln -s \
|
|
/usr/bin/xfce4-terminal \
|
|
/usr/bin/gnome-terminal && \
|
|
mv \
|
|
/usr/bin/chromium \
|
|
/usr/bin/chromium-real && \
|
|
echo "**** cleanup ****" && \
|
|
apt-get autoclean && \
|
|
rm -rf \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/* \
|
|
/tmp/*
|
|
|
|
# add local files
|
|
COPY /root /
|
|
|
|
# ports and volumes
|
|
EXPOSE 3000
|
|
|
|
VOLUME /config
|