Added Split Dockerfile

+Seperate Dockerfiles for Base Image and Installation/Update
+Added Script to build and push automatically
This commit is contained in:
tke
2020-01-24 12:49:39 +01:00
parent 481b056b39
commit 2137ee7428
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
build_date=$(date +%Y%m%d)
docker build --no-cache -t "tabledevil/kaspersky:${build_date}" -f Dockerfile_update .
docker login
docker push "tabledevil/kaspersky:${build_date}"
docker tag "tabledevil/kaspersky:${build_date}" "tabledevil/kaspersky:latest"
docker push "tabledevil/kaspersky:latest"