Commit 8d666a4056d3ffe1c53548ccbadbf97243749b35
Dockerfile
Henry committed on 4/16/2017, 7:22:18 PMParent: e18e404a95ff6bf668905140f3b4c627530879a0
Files changed
Dockerfile | added |
Dockerfile | ||
---|---|---|
@@ -1,0 +1,20 @@ | ||
1 … | +FROM node:7-alpine | |
2 … | + | |
3 … | +COPY . /usr/src/git-ssb-web | |
4 … | +WORKDIR /usr/src/git-ssb-web | |
5 … | + | |
6 … | +RUN apk add --no-cache --virtual .build-deps-sbot python make g++ libtool m4 automake autoconf \ | |
7 … | + && npm install \ | |
8 … | + && apk del .build-deps-sbot | |
9 … | + | |
10 … | +CMD npm start | |
11 … | + | |
12 … | + | |
13 … | +# used like this: | |
14 … | +# docker run -d --restart=unless-stopped \ | |
15 … | +# --net=ssbnet --net-alias=gsw3 \ | |
16 … | +# -v /srv/docker/ta-ssb:/root/.ssb \ # shares an sbot for the /secret | |
17 … | +# -e ssb_appname=ssb \ # quirk in server.js | |
18 … | +# git-ssb-web \ | |
19 … | +# npm start -- --public --host pub.ssbnet --git-ssb-web.host 0.0.0.0 # enable wildcard listen and which sbot db to connect to | |
20 … | + |
Built with git-ssb-web