pipeline { agent { dockerfile true } stages { stage('Checkout') { steps { checkout scm } } stage('Build Docker image') { steps { sh 'docker build -f Dockerfile .' } } stage('Run command in Docker container') { steps { script { sh "ls -l" sh "docker run -v ${env.WORKSPACE}/artifacts:/app/artifacts wujt89 python3 create_dataset.py" } } } } }