This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################ | |
| # STEP 1 build executable binary | |
| ############################ | |
| FROM golang:alpine as builder | |
| # Install git + SSL ca certificates. | |
| # Git is required for fetching the dependencies. | |
| # Ca-certificates is required to call HTTPS endpoints. | |
| RUN apk update && apk add --no-cache git ca-certificates gcc g++ libc-dev && update-ca-certificates | |
| # Create appuser | |
| RUN adduser -D -g '' appuser |
OlderNewer