From 3bebf932dee8ab0aba7976ae9256902678d6a887 Mon Sep 17 00:00:00 2001 From: NikodemMarek Date: Fri, 6 Sep 2024 09:31:50 +0200 Subject: [PATCH] pipeline fix --- Dockerfile | 8 ++++---- docker-compose.yml | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) 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