uppp3
This commit is contained in:
@@ -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 .'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user