diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a5b0e2a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM nimlang/nim:alpine + +COPY . /nwsync + +RUN apk --no-cache add pcre \ + && cd nwsync \ + && nimble install -y \ + && cd - + +ENV PATH="/nwsync/bin:${PATH}" diff --git a/README.md b/README.md index 16d8e4b..483df98 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,13 @@ To build these tools, first install the most recent nim compiler. The suggested After nim is installed and available on your path, simply clone this repository and type `nimble build -d:release`. +### Using with docker + +```bash +docker build --rm -t Beamdog/nwsync:dev . +docker run --rm -w /manifests -v $(pwd):/manifests Beamdog/nwsync:dev nwsync_write --compression="none" nwsync module.mod +``` + ## Documentation There is a technical user manual available at https://docs.google.com/document/d/1eYRTd6vzk7OrLpr2zlwnUk7mgUsyiZzLoR6k54njBVI.