diff --git a/ubuntu20-04/build-i3lock.dockerfile b/ubuntu20-04/build-i3lock.dockerfile new file mode 100644 index 0000000..b053be1 --- /dev/null +++ b/ubuntu20-04/build-i3lock.dockerfile @@ -0,0 +1,20 @@ +# step 1: create a container for i3lock named "i3lock" +# docker -D build --no-cache -t i3lock . +# +# step 2: run bash in the container, e.g. to run i3lock from the command line +# docker run -it i3lock bash + +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 https://github.com/Raymo111/i3lock-color.git /build/i3lock-color + +RUN ./build.sh + +CMD ["sleep", "infinity"] \ No newline at end of file diff --git a/ubuntu20-04/build-i3lock.sh b/ubuntu20-04/build-i3lock.sh new file mode 100755 index 0000000..10fd29a --- /dev/null +++ b/ubuntu20-04/build-i3lock.sh @@ -0,0 +1,4 @@ +docker build -f build-i3lock.dockerfile --no-cache -t build-i3lock:latest . +docker run -d --name build-i3lock build-i3lock:latest +docker cp build-i3lock:/build/i3lock-color/build/i3lock ~/bin/i3lock +docker remove -f build-i3lock