dobu/apps/bambu-studio/Containerfile
Peter Cai fd55053f38 Package Bambu Studio
..although it does not seem to work well with Sommelier under Sway. We
either need to figure this out or there needs to be a way to disable
Sommelier only for specific containers.
2024-04-06 18:15:18 -04:00

24 lines
977 B
Docker

FROM dobu/deps-base-ubuntu-jammy:latest
ARG UPSTREAM_VERSION
RUN apt-get update && apt-get -y install libgtk-3-0 libgstreamer1.0-0 \
gstreamer1.0-plugins-base libwebkit2gtk-4.0-37 curl locales
RUN echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
RUN sh -c "curl -o /tmp/BambuStudio.AppImage -L \
https://github.com/bambulab/BambuStudio/releases/download/${UPSTREAM_VERSION}/Bambu_Studio_linux_ubuntu_\"$(echo ${UPSTREAM_VERSION} | sed 's/^v//')\".AppImage"
RUN chmod +x /tmp/BambuStudio.AppImage && /tmp/BambuStudio.AppImage --appimage-extract \
&& mv ./squashfs-root / && rm -rf /tmp/BambuStudio.AppImage \
&& mkdir -p /usr/share/icons/hicolor/192x192/apps \
&& cp -r /squashfs-root/usr/share/icons/hicolor/192x192/apps/BambuStudio.png /usr/share/icons/hicolor/192x192/apps
USER user
ENV GDK_BACKEND=wayland
LABEL net.typeblog.dobu.desktop_file_path=/squashfs-root/BambuStudio.desktop
ENTRYPOINT [ "/squashfs-root/AppRun" ]