Skip to content

Commit

Permalink
docker image with zmk-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
NikodemMarek committed Dec 8, 2023
1 parent 8d590ad commit b5091e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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;"

0 comments on commit b5091e1

Please sign in to comment.