From b5091e1243ff2584ffdb62b8430869475e6adf87 Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:15:00 +0000 Subject: [PATCH] docker image with zmk-viewer --- Dockerfile | 9 +++++++++ docker-compose.yml | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..03cab60 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest + +# install dependencies (curl, sudo, bash) +RUN apk --no-cache add curl sudo bash + +# install zmk-viewer +RUN curl -sL https://raw.githubusercontent.com/MrMarble/zmk-viewer/master/scripts/install.sh | sudo -E bash - + +WORKDIR /images diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d0ef80b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' + +services: + cheatsheet-generator: + build: + context: . + dockerfile: Dockerfile + volumes: + - ./config:/config + - ./cheatsheets:/images + command: sh -c "rm /images/*; + zmk-viewer generate cradio -f /config/*.keymap --single;"