Fixes [release]

This commit is contained in:
Christopher Schnick
2025-01-03 08:05:36 +01:00
parent 7c0c6bfa56
commit 80fa6dea85

View File

@@ -1,10 +1,17 @@
FROM scratch AS base FROM scratch AS base
FROM base AS build-arm64 ENV VSCODE_LINK=""
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-ubuntunoble ENV XPIPE_ARTIFACT=""
FROM base AS build-amd64 FROM base AS build-amd64
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
ENV VSCODE_LINK="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64"
ENV XPIPE_ARTIFACT="xpipe-installer-linux-x86_64.deb"
FROM base AS build-arm64
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-ubuntunoble
ENV VSCODE_LINK="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-arm64"
ENV XPIPE_ARTIFACT="xpipe-installer-linux-arm64.deb"
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
@@ -54,7 +61,7 @@ RUN echo "**** install packages ****" && \
/tmp/* /tmp/*
RUN echo "**** VsCode ****" && \ RUN echo "**** VsCode ****" && \
wget -O vscode.deb "https://go.microsoft.com/fwlink/?LinkID=760868" && \ wget -O vscode.deb "${VSCODE_LINK}" && \
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt-get update && \ apt-get update && \
apt-get install --no-install-recommends -y "./vscode.deb" && \ apt-get install --no-install-recommends -y "./vscode.deb" && \
@@ -74,11 +81,11 @@ RUN \
https://rawcdn.githack.com/xpipe-io/xpipe/a097ae7a41131fa358b5343345557ad00a45c309/dist/logo/logo.png https://rawcdn.githack.com/xpipe-io/xpipe/a097ae7a41131fa358b5343345557ad00a45c309/dist/logo/logo.png
RUN echo "**** XPipe ****" && \ RUN echo "**** XPipe ****" && \
wget "https://github.com/$XPIPE_REPOSITORY/releases/download/$XPIPE_VERSION/xpipe-installer-linux-x86_64.deb" && \ wget "https://github.com/$XPIPE_REPOSITORY/releases/download/$XPIPE_VERSION/${XPIPE_ARTIFACT}" && \
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt-get update && \ 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-installer-linux-x86_64.deb" rm "./${XPIPE_ARTIFACT}"
RUN mkdir -p "/config/.config/kdedefaults/autostart/" && ln -s "/usr/share/applications/$XPIPE_PACKAGE.desktop" "/config/.config/kdedefaults/autostart/$XPIPE_PACKAGE.desktop" RUN mkdir -p "/config/.config/kdedefaults/autostart/" && ln -s "/usr/share/applications/$XPIPE_PACKAGE.desktop" "/config/.config/kdedefaults/autostart/$XPIPE_PACKAGE.desktop"