# Golang on Alpine docker image

**URL:** <https://discuss.circleci.com/t/golang-on-alpine-docker-image/20156>\
**Category:** Build Environment\
**Tags:** docker, golang\
**Created:** [February 19, 2018, 9:37am UTC](https://discuss.circleci.com/t/golang-on-alpine-docker-image/20156 "2018-02-19T09:37:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaviamissi](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/flaviamissi/32/17855_2.png) [@flaviamissi](https://discuss.circleci.com/u/flaviamissi)\
**Post date:** [February 19, 2018, 9:37am UTC](https://discuss.circleci.com/t/golang-on-alpine-docker-image/20156/1 "2018-02-19T09:37:56Z")

</div>

Hi!

I’m currently using circleci/golang:1.9.3-stretch for my golang builds and it works great, but I wonder if there are any plans in the nearby future to add an alpine image? And since there already alpine versions of some images (like postgres), maybe this makes sense for Go too?

Not sure if this is the right place to ask, please let me know where to go if it isn’t.

Thanks!

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [February 19, 2018, 11:28am UTC](https://discuss.circleci.com/t/golang-on-alpine-docker-image/20156/2 "2018-02-19T11:28:55Z")

</div>

You can use custom images, either from public or private repositories, [see here](https://circleci.com/docs/2.0/build/).

I do something similar (but with Docker Compose rather than native CircleCI approaches), and all my custom images are built on CircleCI too. You need a Docker registry for this.

---

<div class="post-metadata">

**Author:** ![flaviamissi](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/flaviamissi/32/17855_2.png) [@flaviamissi](https://discuss.circleci.com/u/flaviamissi)\
**Post date:** [February 26, 2018, 12:09pm UTC](https://discuss.circleci.com/t/golang-on-alpine-docker-image/20156/3 "2018-02-26T12:09:13Z")

</div>

I was wondering if they would have something they maintain themselves, but perhaps you’re right and it’s best to just have my own for now. Thanks!

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [February 26, 2018, 9:39pm UTC](https://discuss.circleci.com/t/golang-on-alpine-docker-image/20156/4 "2018-02-26T21:39:16Z")

</div>

I believe Circle do maintain a number of images, but I prefer to roll my own. I’ve seen reports of breakages on this forum when a new image is rolled, and a library bumping from one version to another has caused a test to fail.

Rolling my own might mean I am behind the curve a bit, but at least when I do refresh the image, I know what will have caused any CI issues happening shortly after 😸

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:40am UTC](https://discuss.circleci.com/t/golang-on-alpine-docker-image/20156/5 "2018-06-18T11:40:19Z")

</div>


