From 013b6b55b1c3a3eadd6d732f41669fbef01fb115 Mon Sep 17 00:00:00 2001 From: camo-f Date: Thu, 31 Oct 2019 11:05:01 +0100 Subject: [PATCH] add: local build with docker --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a807388..6f7d925 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,16 @@ After building, run with `node out/index.js` or install run as `salty-dog`: ingress.extensions/gitlab created (dry run) ``` +Build with Docker: +``` +# Stretch +docker run --rm -v "$(pwd):/salty-dog" -w /salty-dog node:11-stretch make +docker build -t salty-dog:stretch -f Dockerfile.stretch . +# Alpine +docker run --rm -v "$(pwd):/salty-dog" -w /salty-dog node:11-alpine sh -c "apk add build-base && make" +docker build -t salty-dog:alpine -f Dockerfile.alpine . +``` + ## Install ### Docker