main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100755
|
File size:
418 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | #!/bin/bash
|
---|
| 2 | IMAGE_NAME="imaps-backend"
|
---|
| 3 | TAG="latest"
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | docker rm -f imaps-backendC
|
---|
| 7 |
|
---|
| 8 | if docker images "$IMAGE_NAME" | grep -q "$TAG"; then
|
---|
| 9 | echo "Image $IMAGE_NAME:$TAG found, deleting..."
|
---|
| 10 | docker rmi "$IMAGE_NAME:$TAG"
|
---|
| 11 | else
|
---|
| 12 | echo "Image $IMAGE_NAME:$TAG not found."
|
---|
| 13 | fi
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | docker build -t imaps-backend .
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | docker run \
|
---|
| 20 | --name imaps-backendC \
|
---|
| 21 | --privileged \
|
---|
| 22 | --env-file .env \
|
---|
| 23 | -p 8080:8080 \
|
---|
| 24 | -d \
|
---|
| 25 | imaps-backend
|
---|
Note:
See
TracBrowser
for help on using the repository browser.