Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions DOCKER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Building from Docker
--------

Create the docker image
```
$ docker image build -t milewski-ctfp-pdf:1.0 .
```

Run it interactively starting the nix-shell
```
$ docker container run -i -t --name ctfp milewski-ctfp-pdf:1.0 nix-shell
```

Follow build directions in [README.md](./README.md)

Copy build artifact(s) to local filesystem
```
docker cp ctfp:/usr/git/milewski-ctfp-pdf/out/... destfile
```
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM nixorg/nix:latest
ENV NIX_PATH="nixpkgs=https://github.com/NixOS/nixpkgs/archive/release-19.03.tar.gz"
WORKDIR /usr/git
RUN git clone https://github.com/hmemcpy/milewski-ctfp-pdf.git
WORKDIR milewski-ctfp-pdf
RUN nix-shell