-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker multi-stage build and make compatible with automated builds (#45)
* Fix inconsistent indenting * Remove duplicate code with multistage build * Fix apt package versions [nano, curl, locales] that prevent build * Remove wget * Made PR compatible with docker hub automated builds Co-authored-by: M. Mucahid Benlioglu <m.mucahidbenlioglu@gmail.com>
- Loading branch information
1 parent
939da93
commit 4f9bf8c
Showing
4 changed files
with
16 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
BUILD_PATH=$(echo ${DOCKERFILE_PATH}| sed 's#/#..#g' | sed 's#[a-zA-Z0-9]\+#/#g' | cut -c 2- ) | ||
|
||
docker build --target=bullseye -f $(basename ${DOCKERFILE_PATH}) -t $DOCKER_REPO:latest -t $DOCKER_REPO:steam ${BUILD_PATH}. | ||
docker build --target=bullseye-root -f $(basename ${DOCKERFILE_PATH}) -t $DOCKER_REPO:root ${BUILD_PATH}. |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker push --all-tags ${DOCKER_REPO} |