This commit is contained in:
Ionel Andrei Cataon
2026-02-12 15:57:28 +02:00
parent 9e874e259d
commit 85f6f18181

View File

@@ -17,7 +17,7 @@ pipeline {
steps {
script {
echo "Verificăm sintaxa Python..."
sh 'docker run --rm python:3.9-slim python -m py_compile famousquotes.py'
sh 'docker run --rm -v "$(pwd)":/app -w /app python:3.9-slim python -m py_compile famousquotes.py'
}
}
}
@@ -25,7 +25,9 @@ pipeline {
stage('Build Docker Image') {
steps {
script {
sh 'docker build -t quotes-app .'
directory('project2') {
echo "Construim imaginea Docker pentru aplicația de citate..."
sh 'docker build -t quotes-app .'
}
}
}