Add broken wide dockerfile
This commit is contained in:
parent
db2ea06826
commit
7ef40681e2
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
chown -R 3434:3434 /wide/app /wide/data
|
||||
chmod -R a+rwx /wide/data
|
||||
|
||||
su wide '/run.sh'
|
|
@ -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.
Loading…
Reference in New Issue