Skip to content

Commit b567f1a

Browse files
author
Marek Suchánek
committed
Enable mounting the host directory in the container
1 parent a287031 commit b567f1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ RUN cargo install --path .
1818

1919
FROM registry.access.redhat.com/ubi9-micro:latest
2020
COPY --from=builder /usr/local/cargo/bin/newdoc /usr/local/bin/newdoc
21+
# When running this container interactively, use `-v .:/mnt/newdoc:Z`
22+
# to mount the current directory in the host to the container working dir.
23+
VOLUME ["/mnt/newdoc"]
24+
WORKDIR "/mnt/newdoc"
2125
CMD ["newdoc"]

0 commit comments

Comments
 (0)