Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
aa23f2f9b3 | |||
517e7b3e6a | |||
d5b43b160a | |||
f94133b505 |
@ -5,13 +5,15 @@ RUN apk add --update --no-cache \
|
|||||||
git \
|
git \
|
||||||
jq
|
jq
|
||||||
WORKDIR "/home/node"
|
WORKDIR "/home/node"
|
||||||
ARG WIKI_PACKAGE=wiki@0.21.0
|
ARG WIKI_PACKAGE=wiki@0.21.2
|
||||||
RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE" \
|
RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE"
|
||||||
&& su node -c "cd /home/node/lib/node_modules/wiki && npm install --save wiki-server@0.17.3 wiki-client@0.20.0"
|
|
||||||
RUN su node -c "mkdir -p .wiki"
|
RUN su node -c "mkdir -p .wiki"
|
||||||
VOLUME "/home/node/.wiki"
|
VOLUME "/home/node/.wiki"
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
USER node
|
USER node
|
||||||
ENV PATH="${PATH}:/home/node/bin"
|
ENV PATH="${PATH}:/home/node/bin"
|
||||||
|
# Adding this line to make local plugin development easier
|
||||||
|
# see https://local-farm.wiki.dbbs.co/make-a-new-plugin.html
|
||||||
|
ENV NPM_CONFIG_PREFIX="${HOME}"
|
||||||
ENTRYPOINT ["dumb-init"]
|
ENTRYPOINT ["dumb-init"]
|
||||||
CMD ["wiki", "--farm", "--security_type=friends"]
|
CMD ["wiki", "--farm", "--security_type=friends"]
|
||||||
|
@ -18,7 +18,7 @@ spec:
|
|||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
containers:
|
containers:
|
||||||
- name: farm
|
- name: farm
|
||||||
image: dobbs/farm:1.0.1
|
image: dobbs/farm:1.0.6
|
||||||
command: ["wiki"]
|
command: ["wiki"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
|
Reference in New Issue
Block a user