-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build,images: Use base alpine image from versions for alert-logger
- Loading branch information
1 parent
35cd40e
commit 3b31658
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# SHA256 digest of the base image | ||
ARG BASE_IMAGE_SHA256 | ||
ARG BASE_IMAGE=docker.io/alpine | ||
|
||
ARG BUILD_IMAGE_NAME=golang | ||
ARG BUILD_IMAGE_TAG=1.16.0-alpine | ||
ARG RUN_IMAGE_NAME=alpine | ||
ARG RUN_IMAGE_TAG=3.13.10 | ||
FROM ${BUILD_IMAGE_NAME}:${BUILD_IMAGE_TAG} AS builder | ||
|
||
ENV CGO_ENABLED=0 | ||
|
@@ -19,7 +21,7 @@ RUN sed -i "s/@@ALERTMANAGER_VERSION@@/$ALERTMANAGER_VERSION/g" go.mod \ | |
&& go mod tidy \ | ||
&& go install | ||
|
||
FROM ${RUN_IMAGE_NAME}:${RUN_IMAGE_TAG} | ||
FROM ${BASE_IMAGE}@sha256:${BASE_IMAGE_SHA256} | ||
|
||
MAINTAINER moonshot-platform <[email protected]> | ||
|
||
|