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
unkaktus wants to merge 1 commit intodocker-archive-public:masterfrom
unkaktus:alpine-dockerfile
Open

[WIP] Switch Dockerfile to golang:alpine as the base image#4422
unkaktus wants to merge 1 commit intodocker-archive-public:masterfrom
unkaktus:alpine-dockerfile

Conversation

@unkaktus
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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 [WIP] Switch Dockerfile to golang:alpine as the base image Jun 10, 2018
@unkaktus
Copy link
Copy Markdown
Contributor Author

sorry @tlightsky, what is painful?

@tlightsky
Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants