refactor: using more advanced scripts for more customization

This commit is contained in:
2024-02-12 17:22:57 +01:00
parent 8dc7cad562
commit 89db2b3155
8 changed files with 44 additions and 40 deletions

View File

@@ -0,0 +1,14 @@
FROM ubuntu:20.04
WORKDIR /build/i3lock-color
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y git autoconf gcc make pkg-config libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libev-dev libx11-xcb-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev
RUN git clone --depth=1 https://github.com/Raymo111/i3lock-color.git /build/i3lock-color
RUN ./build.sh
CMD ["sleep", "infinity"]

13
ubuntu20-04/i3lock/build.sh Executable file
View File

@@ -0,0 +1,13 @@
APP=i3lock
CONTAINER="build-${APP}"
ROOT="/build/${APP}-color"
IMAGE="${CONTAINER}:latest"
TARGET="~/bin"
docker build -t "${IMAGE}" "${APP}"
docker run -d --name "${CONTAINER}" "${IMAGE}"
docker cp "${CONTAINER}:${ROOT}/build/i3lock" "${TARGET}/i3lock"
docker remove -f "${CONTAINER}"