updated dockerfile
This commit is contained in:
@@ -4,6 +4,10 @@ RUN apt-get update && apt-get install -y nginx
|
||||
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
|
||||
RUN sed -i 's|root /var/www/html;|root /usr/share/nginx/html;|' /etc/nginx/sites-available/default && \
|
||||
nginx -t && \
|
||||
nginx -s reload
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -6,7 +6,7 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
def imageName = "python-jenkins-project:${BUILD_NUMBER}"
|
||||
docker.build(imageName, '.')
|
||||
sh "DOCKER_BUILDKIT=0 docker build --no-cache -t ${imageName} ."
|
||||
env.IMAGE_NAME = imageName
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user