Skip to content

Commit

Permalink
Create Dockerfile and instructions for building using the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
olandere committed Mar 7, 2020
1 parent 5e605c7 commit d3af809
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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
```bash
$ docker image build -t milewski-ctfp-pdf:1.0 .
```

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

Follow build directions in README.md

Copy build artifact(s) to local filesystem
```bash
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

0 comments on commit d3af809

Please sign in to comment.