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;"