diff --git a/Dockerfile b/Dockerfile index 03cab60..e20d8fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM alpine:latest -# install dependencies (curl, sudo, bash) -RUN apk --no-cache add curl sudo bash +# install dependencies (go) +RUN apk add go -# install zmk-viewer -RUN curl -sL https://raw.githubusercontent.com/MrMarble/zmk-viewer/master/scripts/install.sh | sudo -E bash - +# install zmk-viewer to path +RUN GOBIN=/usr/local/bin/ go install github.com/mrmarble/zmk-viewer/cmd/zmk-viewer@latest WORKDIR /images diff --git a/docker-compose.yml b/docker-compose.yml index d0ef80b..8dc9919 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,6 @@ -version: '3' - services: cheatsheet-generator: - build: - context: . - dockerfile: Dockerfile + image: nikodoom/zmk-viewer:latest volumes: - ./config:/config - ./cheatsheets:/images