diff --git a/examples/nginx-centos7/Dockerfile b/examples/nginx-centos7/Dockerfile index eff0bffdc..588b42387 100644 --- a/examples/nginx-centos7/Dockerfile +++ b/examples/nginx-centos7/Dockerfile @@ -4,7 +4,7 @@ FROM centos:centos7 # Here you can specify the maintainer for the image that you're building -MAINTAINER Your Name +LABEL maintainer="Your Name " # Export an environment variable that provides information about the application version. # Replace this with the version for your application. diff --git a/pkg/create/templates/docker.go b/pkg/create/templates/docker.go index 0e66b1b58..255cf44f4 100644 --- a/pkg/create/templates/docker.go +++ b/pkg/create/templates/docker.go @@ -1,12 +1,11 @@ package templates // Dockerfile is a default Dockerfile laid down by s2i create -const Dockerfile = ` -# {{.ImageName}} +const Dockerfile = `# {{.ImageName}} FROM openshift/base-centos7 # TODO: Put the maintainer name in the image metadata -# MAINTAINER Your Name +# LABEL maintainer="Your Name " # TODO: Rename the builder environment variable to inform users about application you provide them # ENV BUILDER_VERSION 1.0