diff --git a/net/wide/Dockerfile b/net/wide/Dockerfile new file mode 100644 index 0000000..99df581 --- /dev/null +++ b/net/wide/Dockerfile @@ -0,0 +1,18 @@ +FROM golang:1.4.2 + +RUN groupadd -g 3434 wide +RUN adduser wide \ + --uid 3434 \ + --gid 3434 \ + --home /wide/data + +USER wide +ADD ./wide-1.3.0-linux-amd64.tar.gz /wide/app +ADD ./style.css /wide/app/static/user/admin/style.css + +USER root +ADD ./start.sh / +ADD ./run.sh / + +EXPOSE 7070 +CMD /start.sh diff --git a/net/wide/run.sh b/net/wide/run.sh new file mode 100755 index 0000000..c44090b --- /dev/null +++ b/net/wide/run.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +export PATH=/go/bin:/usr/src/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + +cd /wide/app +./wide diff --git a/net/wide/start.sh b/net/wide/start.sh new file mode 100755 index 0000000..7c92e19 --- /dev/null +++ b/net/wide/start.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +chown -R 3434:3434 /wide/app /wide/data +chmod -R a+rwx /wide/data + +su wide '/run.sh' diff --git a/net/wide/style.css b/net/wide/style.css new file mode 100644 index 0000000..8d762ad --- /dev/null +++ b/net/wide/style.css @@ -0,0 +1,14 @@ +body, +input, +button { + font-family: Helvetica; + font-size: 13px; +} + +.edit-exprinfo, +.CodeMirror, +.CodeMirror-hints { + font-family: Consolas, 'Courier New', monospace; + font-size: 13px; + line-height: 17px; +} \ No newline at end of file diff --git a/net/wide/wide-1.3.0-linux-amd64.tar.gz b/net/wide/wide-1.3.0-linux-amd64.tar.gz new file mode 100644 index 0000000..437a2fa Binary files /dev/null and b/net/wide/wide-1.3.0-linux-amd64.tar.gz differ