build: Mutli-stage build and slim image for websocket container (#21954)

This commit is contained in:
Yann Jouanique
2022-11-04 17:10:06 +01:00
committed by GitHub
parent 7d1df3b78d
commit 9832bbd469
3 changed files with 34 additions and 6 deletions

View File

@@ -56,6 +56,19 @@ docker build --target lean \
--label "build_actor=${GITHUB_ACTOR}" \
.
#
# Build the "websocket" image
#
docker build \
-t "${REPO_NAME}-websocket:${SHA}" \
-t "${REPO_NAME}-websocket:${REFSPEC}" \
-t "${REPO_NAME}-websocket:${LATEST_TAG}" \
--label "sha=${SHA}" \
--label "built_at=$(date)" \
--label "target=lean" \
--label "build_actor=${GITHUB_ACTOR}" \
superset-websocket
#
# Build the dev image
#