File: Dockerfile

package info (click to toggle)
node-wikibase-cli 15.15.4-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,940 kB
  • sloc: javascript: 4,531; sh: 26; makefile: 7
file content (10 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
FROM node:8-alpine

COPY ./package.json /tmp

RUN version=$(node -p 'require("/tmp/package.json").version') && \
  apk add git && \
  npm install -g --production "wikibase-cli@${version}" && \
  ln -s /usr/local/lib/node_modules/wikibase-cli /wikibase-cli

ENTRYPOINT [ "wb" ]