Skip to content

Commit 8ba3fcd

Browse files
committed
Revised and updated Dockerfile.
It's now in the Docker hub, readily available, and it's also open for the public. Actually, the indicated error was due to the fact that the original Dockerfile had to be run in the docs directory. It was more oriented to testing and running locally than to actually contain. That one has been moved to the no-docs tag, and is still available. Anyway, this adds docs also, top of the README, and it closes #2525
1 parent a6e880a commit 8ba3fcd

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ WORKDIR /perl6/doc
3131
COPY . .
3232
RUN make test && make html
3333

34-
EXPOSE 3000
34+
EXPOSE 3000
3535

36-
CMD ["morbo", "-w", "assets/sass", "-w", "assets/js", "-w", "html/js/search.js", "-l", "http://*:3000", "app.pl"]
36+
CMD ["morbo", "-w", "assets/sass", "-w", "assets/js", "-w", "html/js/search.js", "-l", "http://0.0.0.0:3000", "app.pl"]

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ This is currently the recommended way to consume the documentation.
88
There is also a command line tool called `p6doc`, which you can use to
99
browse the documentation once it's installed (see below).
1010

11+
## Docker container
12+
13+
This documentation is also published as
14+
the
15+
[`jjmerelo/perl6-doc`](https://cloud.docker.com/repository/docker/jjmerelo/perl6-doc/) Docker
16+
container. It includes a copy of the web publised in port 3000, so you
17+
can run it with:
18+
19+
docker run --rm -it -p 3000:3000 jjmerelo/perl6-doc
20+
21+
or
22+
23+
docker run --rm -it -p 31415:3000 jjmerelo/perl6-doc
24+
25+
in case you want it published somewhere else. You can direct your
26+
browser to http://localhost:3000 (or 31415, as the case may be).
27+
28+
1129
## README in other languages
1230

1331
* [README in Chinese](resources/i18n/zh/README.zh.md)

0 commit comments

Comments
 (0)