Skip to content

Commit d3af809

Browse files
committed
Create Dockerfile and instructions for building using the docker image
1 parent 5e605c7 commit d3af809

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

DOCKER.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Building from Docker
2+
--------
3+
4+
Create the docker image
5+
```bash
6+
$ docker image build -t milewski-ctfp-pdf:1.0 .
7+
```
8+
9+
Run it interactively starting the nix-shell
10+
```bash
11+
$ docker container run -i -t --name ctfp milewski-ctfp-pdf:1.0 nix-shell
12+
```
13+
14+
Follow build directions in README.md
15+
16+
Copy build artifact(s) to local filesystem
17+
```bash
18+
docker cp ctfp:/usr/git/milewski-ctfp-pdf/out/... destfile
19+
```

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM nixorg/nix:latest
2+
ENV NIX_PATH="nixpkgs=https://github.com/NixOS/nixpkgs/archive/release-19.03.tar.gz"
3+
WORKDIR /usr/git
4+
RUN git clone https://github.com/hmemcpy/milewski-ctfp-pdf.git
5+
WORKDIR milewski-ctfp-pdf
6+
RUN nix-shell

0 commit comments

Comments
 (0)