You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
574 B

apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: nginx-hello-world
spec:
runPolicy: Serial
triggers:
- type: "ImageChange"
imageChange: {}
source:
dockerfile: |
FROM ubuntu:latest
RUN apt update && \
apt install -y nginx
COPY index.html /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
CMD /usr/sbin/nginx -g 'daemon off;'
strategy:
type: Docker
dockerStrategy:
noCache: false
output:
to:
kind: ImageStreamTag
name: "nginx-hello-world:latest"