2015-07-20 02:22:51 +00:00
|
|
|
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
|
2015-07-20 04:06:43 +00:00
|
|
|
ADD ./admin.json /wide/admin.json
|
2015-07-20 02:22:51 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
ADD ./start.sh /
|
|
|
|
ADD ./run.sh /
|
|
|
|
|
|
|
|
EXPOSE 7070
|
|
|
|
CMD /start.sh
|