feat(i3lock): added build

master
oxypomme 2024-02-12 13:39:54 +01:00
parent ec2526068c
commit 8dc7cad562
2 changed files with 24 additions and 0 deletions

View File

@ -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"]

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

@ -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