feat: added docker build container and improved build script

This commit is contained in:
2023-03-24 21:24:58 +01:00
parent 61fb439d72
commit 9014954cd0
3 changed files with 63 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
FROM ubuntu:22.10
RUN rm -f /etc/apt/apt.conf.d/docker-clean
RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt/lists \
DEBIAN_FRONTEND="noninteractive" apt-get update \
&& apt-get -y install tzdata
RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt/lists \
apt-get update \
&& apt-get install -y \
autoconf \
automake \
build-essential \
clang \
cmake \
dos2unix \
g++ \
gcc \
gdb \
git \
libtool \
locales-all \
make \
ninja-build \
python3 \
python3-dev \
rsync \
tar \
valgrind \
wget \
xorriso \
&& apt-get clean

6
build-container/build.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
IMAGE=yak-build-container
DOCKER_BUILDKIT=1 docker build . -t "${IMAGE}:latest"
docker image prune -f