instruction: Create a Dockerfile for Nginx with production best practices
output: ```dockerfile
  from other objects into containers
  without creating patches. For example, you can change the image used inside containers by specifying the new image in the images field
  in kustomization.yaml.cat <<EOF > deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
   name: my-nginx
  spec:
   selector:
   matchLabels:
   run: my-nginx
   replicas: 2
   template:
   metadata:
   labels:
   run: my-nginx
   spec:
   containers:
   - name: my-nginx
   image: nginx
   ports:
   - containerPort: 80
  EOF
  
  cat <<EOF >./kustomization.yaml
  resources:
  - deployment.yaml
  images:
  - name: nginx
   newName: my.image.registry/nginx
   newTag: "1.4.0"
  EOF
  Run kubectl kustomize ./ to see that the image being used is updated:apiVersion: apps/v1
  kind: Deployment
  metadata:
   name: my-nginx
  spec:
   replicas: 2
   selector:
   matchLabels:
   run: my-nginx
   template:
   metadata:
   labels:
   run: my-nginx
   spec:
   containers:
   - image: my.image.registry/nginx:1.4.0
   name: my-nginx
   ports:
   - containerPort: 80
  Sometimes, the application running in a Pod may need to use configuration values
  ```