refactor: using more advanced scripts for more customization
This commit is contained in:
14
ubuntu20-04/i3lock/Dockerfile
Normal file
14
ubuntu20-04/i3lock/Dockerfile
Normal 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
13
ubuntu20-04/i3lock/build.sh
Executable 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}"
|
||||
Reference in New Issue
Block a user