override command for intermediate containers to prevent execution of the container if command is defined

This commit is contained in:
Ulf Gebhardt 2023-02-24 00:20:32 +01:00
parent e045bc96f9
commit d284f7b122
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -7,6 +7,7 @@ services:
dockerfile: ../webapp/Dockerfile
context: ../webapp
target: base
command: sleep 0
webapp-code:
image: ocelotsocialnetwork/webapp:local-code
@ -14,6 +15,7 @@ services:
dockerfile: ../webapp/Dockerfile
context: ../webapp
target: code
command: sleep 0
webapp:
image: ocelotsocialnetwork/webapp-branded:local-${CONFIGURATION}
@ -51,6 +53,7 @@ services:
dockerfile: ../backend/Dockerfile
context: ../backend
target: base
command: sleep 0
backend-code:
image: ocelotsocialnetwork/backend:local-code
@ -58,6 +61,7 @@ services:
dockerfile: ../backend/Dockerfile
context: ../backend
target: code
command: sleep 0
backend:
image: ocelotsocialnetwork/backend-branded:local-${CONFIGURATION}
@ -106,6 +110,7 @@ services:
dockerfile: ../webapp/Dockerfile.maintenance
context: ../webapp
target: base
command: sleep 0
maintenance-code:
image: ocelotsocialnetwork/maintenance:local-code
@ -113,6 +118,7 @@ services:
dockerfile: ../webapp/Dockerfile.maintenance
context: ../webapp
target: code
command: sleep 0
maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there