From 0f16779e78b27a67b0a214070256d99ceffad6dc Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 15 Sep 2024 00:30:10 +0200 Subject: [PATCH] add build/docker --- build/docker/Dockerfile | 7 +++++++ build/docker/build.sh | 3 +++ build/docker/start.sh | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 build/docker/Dockerfile create mode 100755 build/docker/build.sh create mode 100755 build/docker/start.sh diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile new file mode 100644 index 0000000..19c27da --- /dev/null +++ b/build/docker/Dockerfile @@ -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" diff --git a/build/docker/build.sh b/build/docker/build.sh new file mode 100755 index 0000000..5509cca --- /dev/null +++ b/build/docker/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd "`dirname "$0"`" +podman build . --tag outfly-build-env diff --git a/build/docker/start.sh b/build/docker/start.sh new file mode 100755 index 0000000..39a6542 --- /dev/null +++ b/build/docker/start.sh @@ -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