Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

[WIP] Switch Dockerfile to golang:alpine as the base image #4422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

unkaktus
Copy link
Contributor

@unkaktus unkaktus commented Mar 15, 2018

This reduces disk footprint from ~730MB to ~270MB for base image, speeds up package installation and leaves no package manager cache to be removed.
Golang version was bumped to 1.9.4 and Alpine image pinned to 3.7.
Also there is a minor syntax fix.

Bump Golang version to 1.9.4 and pin Alpine to 3.7.

Signed-off-by: Ivan Markin <sw@nogoegst.net>
@unkaktus unkaktus force-pushed the alpine-dockerfile branch from 9e95689 to 39460b8 Compare March 15, 2018 19:18
@unkaktus
Copy link
Contributor Author

unkaktus commented Mar 15, 2018

Oh no, I completely forgot that Golang race detector requires glibc and doesn't work on Alpine Linux (golang/go#14481). I'll try to fix this somehow.

@tlightsky
Copy link

please fix it, really painful can't use race in alpine

@unkaktus unkaktus changed the title Switch Dockerfile to golang:alpine as the base image Jun 10, 2018
@unkaktus
Copy link
Contributor Author

sorry @tlightsky, what is painful?

@tlightsky
Copy link

the fact that docker:alpine image can't use race :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants