GithubHelp home page GithubHelp logo

chai2010 / goapp-in-docker Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 84 KB

Building Minimal Docker Containers for Go App

License: BSD 3-Clause "New" or "Revised" License

Makefile 30.15% Go 37.36% Shell 19.01% Ruby 13.48%
docker golang go cgo

goapp-in-docker's Introduction

运行Go应用的最小Docker环境

  • hello-v1: 最小的 Go 程序, 没有导入任何包, 禁止 cgo (700+KB)
  • hello-v2: 包含 cgo 和 net 包, 开启 cgo 功能, 全部静态链接 (5+MB)
  • mini-docker: 通过不到100行Go代码打造你自己的容器(转载)

build环境

为了完美支持cgo的交叉编译, hello-v2 采用了在 Docker 中编译目标的方案, 支持在 macOS 等其它系统开发.

goapp-in-docker's People

Contributors

chai2010 avatar

Stargazers

liuxuewen avatar xin zhao avatar elvuel avatar zan avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.