Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
86548c594a | |||
ef34fdc759 | |||
e22b66240d |
@ -3,10 +3,11 @@ FROM node:4-slim
|
||||
RUN useradd --create-home app \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq
|
||||
jq \
|
||||
git
|
||||
WORKDIR /home/app
|
||||
ARG VERSION=0.12.0
|
||||
RUN su app -c "npm install -g --prefix . wiki@$VERSION"
|
||||
ARG WIKI_PACKAGE=wiki@0.12.2
|
||||
RUN su app -c "npm install -g --prefix . $WIKI_PACKAGE"
|
||||
RUN su app -c "mkdir .wiki"
|
||||
COPY configure-and-launch-wiki set-owner-name ./
|
||||
RUN chown app configure-and-launch-wiki set-owner-name
|
||||
|
@ -52,8 +52,11 @@ Open http://that.localtest.me:3000 in another.
|
||||
|
||||
# Development
|
||||
|
||||
This image's tag matches the version of the included wiki software.
|
||||
|
||||
``` bash
|
||||
VERSION=0.12.0
|
||||
docker build --build-arg VERSION=$VERSION -t dobbs/farm:$VERSION .
|
||||
git tag -am "" $VERSION
|
||||
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