Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
86548c594a | |||
ef34fdc759 | |||
e22b66240d | |||
e06405adc1 | |||
bc8204c9d3 |
@ -3,9 +3,11 @@ FROM node:4-slim
|
|||||||
RUN useradd --create-home app \
|
RUN useradd --create-home app \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
jq
|
jq \
|
||||||
|
git
|
||||||
WORKDIR /home/app
|
WORKDIR /home/app
|
||||||
RUN su app -c "npm install -g --prefix . wiki@0.11.4"
|
ARG WIKI_PACKAGE=wiki@0.12.2
|
||||||
|
RUN su app -c "npm install -g --prefix . $WIKI_PACKAGE"
|
||||||
RUN su app -c "mkdir .wiki"
|
RUN su app -c "mkdir .wiki"
|
||||||
COPY configure-and-launch-wiki set-owner-name ./
|
COPY configure-and-launch-wiki set-owner-name ./
|
||||||
RUN chown app configure-and-launch-wiki set-owner-name
|
RUN chown app configure-and-launch-wiki set-owner-name
|
||||||
|
11
README.md
11
README.md
@ -49,3 +49,14 @@ docker run -p 3000:3000 -it --rm \
|
|||||||
|
|
||||||
Open http://this.localtest.me:3000 in one tab.
|
Open http://this.localtest.me:3000 in one tab.
|
||||||
Open http://that.localtest.me:3000 in another.
|
Open http://that.localtest.me:3000 in another.
|
||||||
|
|
||||||
|
# Development
|
||||||
|
|
||||||
|
This image's tag matches the version of the included wiki software.
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
git tag -am "" '0.12.2'
|
||||||
|
git push --tags
|
||||||
|
docker build -t dobbs/farm:0.12.2 .
|
||||||
|
docker push dobbs/farm:0.12.2
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user