Skip to content

Commit 6d76611

Browse files
committed
update package to docker image readme
1 parent 55881c8 commit 6d76611

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ where `version` is the DOMjudge version to create the images for, e.g. `5.3.0`.
263263

264264
To build domjudge with local sources, run
265265
```bash
266-
tar --exclude-vcs -czf <path to domjudge-packaging>/docker/domjudge.tar.gz <domjudge source directory>
267-
cd <path to domjudge-packaging>/docker
266+
dpkp=<path to domjudge-packaging>
267+
dj=<domjudge source directory>
268+
tar --exclude-vcs -czf $dpkp/docker/domjudge.tar.gz -C $(dirname "$dj") $(basename "$dj")
269+
cd $dpkp/docker
268270
docker build -t domjudge -f domserver/Dockerfile .
269271
```
270272
Note that the source directory name has to match `domjudge-*`.

0 commit comments

Comments
 (0)