gopkg.in/openshift/source-to-image.v1@v1.2.0/pkg/create/templates/docker.go (about) 1 package templates 2 3 // Dockerfile is a default Dockerfile laid down by s2i create 4 const Dockerfile = `# {{.ImageName}} 5 FROM openshift/base-centos7 6 7 # TODO: Put the maintainer name in the image metadata 8 # LABEL maintainer="Your Name <your@email.com>" 9 10 # TODO: Rename the builder environment variable to inform users about application you provide them 11 # ENV BUILDER_VERSION 1.0 12 13 # TODO: Set labels used in OpenShift to describe the builder image 14 #LABEL io.k8s.description="Platform for building xyz" \ 15 # io.k8s.display-name="builder x.y.z" \ 16 # io.openshift.expose-services="8080:http" \ 17 # io.openshift.tags="builder,x.y.z,etc." 18 19 # TODO: Install required packages here: 20 # RUN yum install -y ... && yum clean all -y 21 RUN yum install -y rubygems && yum clean all -y 22 RUN gem install asdf 23 24 # TODO (optional): Copy the builder files into /opt/app-root 25 # COPY ./<builder_folder>/ /opt/app-root/ 26 27 # TODO: Copy the S2I scripts to /usr/libexec/s2i, since openshift/base-centos7 image 28 # sets io.openshift.s2i.scripts-url label that way, or update that label 29 COPY ./s2i/bin/ /usr/libexec/s2i 30 31 # TODO: Drop the root user and make the content of /opt/app-root owned by user 1001 32 # RUN chown -R 1001:1001 /opt/app-root 33 34 # This default user is created in the openshift/base-centos7 image 35 USER 1001 36 37 # TODO: Set the default port for applications built using this image 38 # EXPOSE 8080 39 40 # TODO: Set the default CMD for the image 41 # CMD ["/usr/libexec/s2i/usage"] 42 `