使用方式

    使用示例

    1. $ gf docker main.go -p -t loads/gf-demos:test
    2. 2020-12-31 00:47:28.207 start building...
    3. 2020-12-31 00:47:28.207 go build -o ./bin/linux_amd64/main main.go
    4. 2020-12-31 00:47:35.894 done!
    5. Sending build context to Docker daemon 37.63MB
    6. Step 1/10 : FROM loads/alpine:3.8
    7. ---> f9fb622e6db2
    8. Step 2/10 : LABEL maintainer="john@goframe.org"
    9. ---> Using cache
    10. ---> da238418d031
    11. Step 3/10 : ENV WORKDIR /var/www/gf-demos
    12. ---> Using cache
    13. Step 4/10 : ADD ./bin/linux_amd64/main $WORKDIR/main
    14. Step 5/10 : RUN chmod +x $WORKDIR/main
    15. ---> Running in 1d49d5d91080
    16. Removing intermediate container 1d49d5d91080
    17. ---> a03ee04e3380
    18. Step 6/10 : ADD public $WORKDIR/public
    19. ---> 63dd06d0e1a3
    20. Step 7/10 : ADD config $WORKDIR/config
    21. ---> fa7a57eba577
    22. Step 8/10 : ADD template $WORKDIR/template
    23. ---> 7075609b0447
    24. Step 9/10 : WORKDIR $WORKDIR
    25. ---> Running in a34ef38e1031
    26. Removing intermediate container a34ef38e1031
    27. ---> 580077998eaf
    28. Removing intermediate container ed286b518ad9
    29. ---> fbbc05842901
    30. Successfully built fbbc05842901
    31. Successfully tagged loads/gf-demos:test
    32. The push refers to repository [docker.io/loads/gf-demos]
    33. b4025b95a79f: Preparing
    34. 9e0369a57507: Preparing
    35. 46c68dcc8e12: Preparing
    36. 59adbc083ee5: Preparing
    37. 10e0b999ba57: Preparing
    38. 8e850d7b086e: Waiting
    39. d5e057db20a2: Waiting
    40. 92e898fd7f84: Waiting
    41. d9ff549177a9: Waiting
    42. ...