Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
f85afce8c8 | |||
76280f3e7b | |||
356afda8a7 | |||
e9bd94e860 |
10
Dockerfile
10
Dockerfile
@ -1,12 +1,12 @@
|
||||
FROM node:8-slim
|
||||
FROM node:10-alpine
|
||||
|
||||
RUN useradd --create-home app \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
RUN adduser -D -h /home/app app \
|
||||
&& apk add --update --no-cache \
|
||||
bash \
|
||||
jq \
|
||||
git
|
||||
WORKDIR /home/app
|
||||
ARG WIKI_PACKAGE=wiki@0.14.0
|
||||
ARG WIKI_PACKAGE=wiki@0.17.0
|
||||
RUN su app -c "npm install -g --prefix . $WIKI_PACKAGE"
|
||||
RUN su app -c "mkdir .wiki"
|
||||
COPY configure-wiki set-owner-name ./
|
||||
|
15
README.md
15
README.md
@ -36,13 +36,24 @@ Visit http://localhost:3000
|
||||
|
||||
# Development
|
||||
|
||||
This image's tag matches the version of the included wiki software.
|
||||
This image's tag does not match the version of the included wiki software.
|
||||
|
||||
Notes to self:
|
||||
|
||||
``` bash
|
||||
git tag -am "" '0.14.0'
|
||||
docker build --tag dobbs/farm:0.51.0 .
|
||||
git tag -am "" '0.51.0'
|
||||
git push --tags
|
||||
```
|
||||
|
||||
The repos in Dockerhub and GitHub are configured to automatically build new tags.
|
||||
|
||||
# Publish experimental plugins
|
||||
|
||||
``` bash
|
||||
docker build \
|
||||
--tag dobbs/farm:0.14.0-frame \
|
||||
--build-arg WIKI_PACKAGE='dobbs/wiki#frame' \
|
||||
.
|
||||
docker push dobbs/farm:0.14.0-frame
|
||||
```
|
||||
|
Reference in New Issue
Block a user