mindoc/Dockerfile
lifei6671 ad67558b80 1、实现网站首页
2、实现文档阅读
3、实现项目发布
4、实现用户权限
2017-04-30 22:13:12 +08:00

14 lines
342 B
Docker

FROM golang:1.8.1-alpine
ADD . /go/src/github.com/lifei6671/godoc
WORKDIR /go/src/github.com/lifei6671/godoc
RUN chmod +x start.sh
RUN go build -ldflags "-w" && \
rm -rf commands controllers models routers search vendor .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md utils graphics Godeps
CMD ["./start.sh"]