dockerfile.go 460 B

123456789101112131415161718192021222324
  1. package main
  2. var DockerFile = `FROM alpine
  3. ADD {project_name} /app/
  4. ADD conf /app/conf
  5. ADD doc /app/doc
  6. ADD web /app/web
  7. ADD sqlconfig /app/sqlconfig
  8. VOLUME [ "/app/conf" ]
  9. EXPOSE 6166
  10. WORKDIR /app
  11. CMD ["/app/{project_name}"]
  12. `
  13. var BuildSH = `#!/bin/bash
  14. export GOARCH=amd64; export GOOS=linux;go build .
  15. docker build . -t docker.qianqiusoft.com/{project_name}
  16. docker login docker.qianqiusoft.com
  17. docker push docker.qianqiusoft.com/{project_name}
  18. `