move Dockerfile an compose to base folder for later support of different packaging

This commit is contained in:
2022-02-22 10:33:30 +01:00
parent 1ca29cc06e
commit 1191a7a5e6
4 changed files with 8 additions and 5 deletions

15
base/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
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}
WORKDIR /mnt
CMD ["/bin/bash"]

8
base/docker-compose.yml Normal file
View File

@@ -0,0 +1,8 @@
version: "3"
services:
rust-gtk:
image: ghcr.io/13hannes11/gtk4-rs-docker:latest
volumes:
- ../adwaita-demo:/mnt:z
command: /bin/bash -c "cargo build --release"