source: imaps-backend/backendRender/run.sh

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100755
File size: 418 bytes
Line 
1#!/bin/bash
2IMAGE_NAME="imaps-backend"
3TAG="latest"
4
5
6docker rm -f imaps-backendC
7
8if docker images "$IMAGE_NAME" | grep -q "$TAG"; then
9 echo "Image $IMAGE_NAME:$TAG found, deleting..."
10 docker rmi "$IMAGE_NAME:$TAG"
11else
12 echo "Image $IMAGE_NAME:$TAG not found."
13fi
14
15
16docker build -t imaps-backend .
17
18
19docker run \
20--name imaps-backendC \
21--privileged \
22--env-file .env \
23-p 8080:8080 \
24-d \
25imaps-backend
Note: See TracBrowser for help on using the repository browser.