mirror of
https://github.com/13hannes11/gtk4-rs-docker.git
synced 2024-09-03 23:21:01 +02:00
add image for building appimages
This commit is contained in:
30
appimage/Dockerfile
Normal file
30
appimage/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM fedora:latest
|
||||
|
||||
ENV RUST_VERSION=1.58.1
|
||||
RUN dnf install gtk4-devel gcc libadwaita-devel -y
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
RUN . ~/.cargo/env
|
||||
RUN ls $HOME/.cargo/env
|
||||
ENV PATH=/root/.cargo/bin:$PATH
|
||||
RUN rustup install ${RUST_VERSION}
|
||||
|
||||
|
||||
ENV APPIMAGE_VERSION=13
|
||||
ENV APPIMAGE_EXTRACT_AND_RUN=1
|
||||
|
||||
RUN cargo install cargo-appimage
|
||||
|
||||
RUN dnf install wget -y
|
||||
|
||||
RUN wget https://github.com/AppImage/AppImageKit/releases/download/$APPIMAGE_VERSION/appimagetool-x86_64.AppImage
|
||||
RUN chmod +x appimagetool-x86_64.AppImage
|
||||
RUN ./appimagetool-x86_64.AppImage --appimage-extract
|
||||
RUN ls
|
||||
RUN ln -nfs /squashfs-root/usr/bin/appimagetool /usr/bin/appimagetool
|
||||
|
||||
RUN dnf install file desktop-file-utils appstream -y
|
||||
|
||||
WORKDIR /mnt
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
7
appimage/docker-compose.yml
Normal file
7
appimage/docker-compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
version: "3"
|
||||
services:
|
||||
rust-gtk-appimage:
|
||||
build: .
|
||||
volumes:
|
||||
- ../adwaita-demo:/mnt:z
|
||||
command: /bin/bash -c "cargo appimage"
|
||||
Reference in New Issue
Block a user