blang / Golang Alpine Docker
Build golang binaries for alpine linux
Stars: ✭ 33
Labels
Projects that are alternatives of or similar to Golang Alpine Docker
Gomake
Example sources for a talk about Golang & Makefiles
Stars: ✭ 29 (-12.12%)
Mutual labels: makefile
Polimorfologik
Scripts for preprocessing morfologik data.
Stars: ✭ 31 (-6.06%)
Mutual labels: makefile
Android device samsung p4wifi
Device configuration for Samsung Galaxy Tab 10.1 - Google I/O edition
Stars: ✭ 30 (-9.09%)
Mutual labels: makefile
Cv Boilerplate
Programmatic generation of high-quality CVs
Stars: ✭ 967 (+2830.3%)
Mutual labels: makefile
Pi Builder
Extensible tool to build Arch Linux ARM for Raspberry Pi on x86_64 host using Docker
Stars: ✭ 31 (-6.06%)
Mutual labels: makefile
Ath11k Firmware
Firmware files for ath11k, a mac80211 driver for Qualcomm Technologies 802.11ax devices
Stars: ✭ 30 (-9.09%)
Mutual labels: makefile
Istio Cross Namespace Canary Release Demo
Cross-namespace canary release using Kubernetes, Istio and Helm
Stars: ✭ 31 (-6.06%)
Mutual labels: makefile
Eos Party Testnet
Deprecated(Recommended https://www.cryptokylin.io/)
Stars: ✭ 30 (-9.09%)
Mutual labels: makefile
Cderpm
RPM spec file, patches, and scripts to package up the Common Desktop Environment
Stars: ✭ 31 (-6.06%)
Mutual labels: makefile
Circleci Multi File Config
A sane workflow for managing large circleci configurations.
Stars: ✭ 29 (-12.12%)
Mutual labels: makefile
Recreatingthepast fall17
recreating the past class at SFPC for fall 2017
Stars: ✭ 32 (-3.03%)
Mutual labels: makefile
Contract
My plain-language freelance contract (in Markdown).
Stars: ✭ 32 (-3.03%)
Mutual labels: makefile
official golang
image
DEPRECATED in favor the New golang official images are based on alpine as well.
Alpine linux golang docker image - 204MB
Because alpine linux and therefor gliderlabs/alpine
docker containers use musl instead gnu libc, your golang binaries build using libc will not work on alpine.
There are two ways you can fix this:
Static linking
CGO_ENABLED=0 go build -a -installsuffix cgo
Use this docker image
Use this docker container to build your golang project for alpine linux.
Image golang
|
Image blang/golang-alpine
|
---|---|
~515 MB | ~281 MB |
GCC+Other weight | Bare |
Also check out my blog post about this topic.
Usage
Like the base golang
image
docker pull blang/golang-alpine
docker run --rm -v "$PWD":/go/src/github.com/yourname/yourrepo -w /go/src/github.com/yourname/yourrepo blang/golang-alpine go build -v
docker run --rm -v "$PWD":/go/bin blang/golang-alpine go get github.com/yourname/yourrepo
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].