We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52a2ed0 commit e61dec4Copy full SHA for e61dec4
.circleci/config.yml
@@ -12,7 +12,19 @@ jobs:
12
name: Build Docker image
13
command: |
14
docker build -t $DOCKER_USER/node-js-sample .
15
+
16
+ # Lancer l'application dans le conteneur Docker
17
+ - run:
18
+ name: Run Docker container
19
+ command: |
20
+ docker run -d -p 8080:8080 --name nodejs-sample $DOCKER_USER/node-js-sample
21
22
+ # Vérifier la route / de l'application avec curl
23
24
+ name: Verify application is running
25
26
+ curl -f http://localhost:8080/ || (echo "Application failed to start" && exit 1)
27
28
# Pousser l'image Docker vers Docker Hub (ou un autre registre)
29
- run:
30
name: Push Docker image to Docker Hub
0 commit comments