Add broken wide dockerfile

This commit is contained in:
Christine Dodrill 2015-07-19 19:22:51 -07:00
parent db2ea06826
commit 7ef40681e2
5 changed files with 44 additions and 0 deletions

18
net/wide/Dockerfile Normal file
View File

@ -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

6
net/wide/run.sh Executable file
View File

@ -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

6
net/wide/start.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
chown -R 3434:3434 /wide/app /wide/data
chmod -R a+rwx /wide/data
su wide '/run.sh'

14
net/wide/style.css Normal file
View File

@ -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;
}

Binary file not shown.