Skip to content

Commit

Permalink
prevent layer duplication by copying extracted archive
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca committed Oct 19, 2024
1 parent 06cc5a4 commit 27cc770
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN \
nodejs \
npm && \
npm install --global yarn && \
ln -s /usr/lib/aarch64-linux-gnu/libz.so.1 /usr/lib/aarch64-linux-gnu/libz.so && \
echo "**** build altus ****" && \
if [ -z "${ALTUS_VERSION+x}" ]; then \
ALTUS_VERSION=$(curl -sX GET "https://api.github.com/repos/amanharwara/altus/releases/latest" \
Expand All @@ -22,7 +23,13 @@ RUN \
cd /tmp/altus && \
yarn install && \
yarn run make -p linux && \
mv out/make/*.AppImage /tmp/altus.app
mv out/make/*.AppImage /tmp/altus.app && \
cd /tmp && \
chmod +x /tmp/altus.app && \
./altus.app --appimage-extract && \
mv squashfs-root /opt/altus && \
find /opt/altus -type d -exec chmod go+rx {} + && \
ln -s /opt/altus/Altus /opt/altus/altus

# runtime stage
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-debianbookworm
Expand All @@ -37,7 +44,7 @@ LABEL maintainer="thelamer"
# title
ENV TITLE=Altus

COPY --from=build-stage /tmp/altus.app /tmp/altus.app
COPY --from=build-stage /opt/altus /opt/altus

RUN \
echo "**** install packages ****" && \
Expand All @@ -47,14 +54,6 @@ RUN \
libatk1.0-0 \
libatk-bridge2.0-0 \
libgtk-3-0 && \
ln -s /usr/lib/aarch64-linux-gnu/libz.so.1 /usr/lib/aarch64-linux-gnu/libz.so && \
echo "**** install altus studio from appimage ****" && \
cd /tmp && \
chmod +x /tmp/altus.app && \
./altus.app --appimage-extract && \
mv squashfs-root /opt/altus && \
find /opt/altus -type d -exec chmod go+rx {} + && \
ln -s /opt/altus/Altus /opt/altus/altus && \
sed -i 's|</applications>| <application title="Altus*" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
Expand Down

0 comments on commit 27cc770

Please sign in to comment.