Skip to content

What are the steps to build a new docker container? #491

Answered by markphelps
jamesnos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jamesnos

I just made some changes to how Flipt is built/bootstrapped, but to answer your question you should be able to build your own image two different ways.

Build an image as close to the official Flipt image as possible

mac os/homebrew required

This is how I build and release the Flipt docker image, using a combo of musl-cross and goreleaser

Basically the process is:

  1. Flipt binary is built using go-releaser, which has some special configs to build for Linux, using cgo (required for the https://github.com/mattn/go-sqlite3 lib)
  2. go-releaser copies the resulting binary (now built for linux/amd64) into the build/Dockerfile, this is the Dockerfile that actually results in the release i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jamesnos
Comment options

Answer selected by jamesnos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants