add build/docker

This commit is contained in:
yuni 2024-09-15 00:30:10 +02:00
parent ccce43a4bb
commit 0f16779e78
3 changed files with 14 additions and 0 deletions

7
build/docker/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM docker.io/ubuntu:20.04
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt update && apt install -y -q git vim build-essential alsa-source alsa-tools libasound2-dev pkg-config libwayland-dev gcc-mingw-w64 zip
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y
RUN rustup target add x86_64-pc-windows-gnu
ENV PATH "$PATH:/root/.cargo/bin"

3
build/docker/build.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cd "`dirname "$0"`"
podman build . --tag outfly-build-env

4
build/docker/start.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
cd "`dirname "$0"`"
mkdir -p ../../additional/docker
podman run --rm -it -v ../../additional/docker:/workdir outfly-build-env bash